Results 1 to 2 of 2
Thread: arrays strings and doubles
- 01-13-2008, 10:30 PM #1
Member
- Join Date
- Jan 2008
- Posts
- 1
- Rep Power
- 0
arrays strings and doubles
Hi all !!
am struggling a bit.
i am trying to do a multi dimensional array for the object Person with strings for name and category and doubles for heights.
can anyone tell me if :
public Person(String firstName, String surname, String Category, double heightInitial, double height3yr, double height5yr )
Will work????
HELPPP
- 01-13-2008, 11:26 PM #2
As that is exactly - no. First, where does your multi-dimensional array come into play? Lastly, I assume the code you're writing is a definition and therefore is a constructor's definition - not a call to a constructor, yes? So, write its definition... something to the effect of:
And btw, Welcome to the Java Forums. See you around.Java Code:public Person(String firstName, String surname, String Category, double heightInitial, double height3yr, double height5yr) { this.fName = firstName; this.surname = surname; this.category = Category; this.heightInit = heightInitial; ... ... ... }Vote for the new slogan to our beloved Java Forums! (closes on September 4, 2008)
Want to voice your opinion on your IDE/Editor of choice? Vote now!
Got a little Capt'n in you? (drink responsibly)
Similar Threads
-
Subtracting Strings
By ravian in forum New To JavaReplies: 7Last Post: 10-08-2009, 06:26 PM -
Help with Vectors and Strings...
By kaban in forum New To JavaReplies: 2Last Post: 12-09-2007, 09:04 AM -
Comparing Strings
By Java Tip in forum Java TipReplies: 0Last Post: 12-03-2007, 09:44 AM -
reversing Strings
By Java Tip in forum Java TipReplies: 0Last Post: 11-11-2007, 08:24 PM -
how to compare two strings
By elizabeth in forum New To JavaReplies: 7Last Post: 08-06-2007, 03:57 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks