Gwen Smith

Greenhorn
+ Follow
since Jan 23, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Gwen Smith

theList is an array of objects (Contact[])

13 years ago
I'm trying to print out an array (theList) of objects, and I keep getting something like this: [LContact;@1389e4

I have a toString() method:


and the bit that should print it out
I think it's the second part that's wrong, but I'm not sure why, or how to make it right.
13 years ago
okay, so I don't know what that was.
what I want to do is make it so the add() will take a name and phone number and add it to theList, which is an instance of Contact()








and thanks for the welcome!
13 years ago
i'm working on a program that takes a name and phone number, and creates a contact list. When I try and compile this program, I get this error

ContactList.java:57: ')' expected
Contact theContact= new Contact(theList[count]=theContact: name, phone);

and I'm not quite sure what it means.




13 years ago