[Logo]
Forums Register Login
Address Book entry
Hi! I am new member of this forum. And I'm also a beginner of Java Programs. My assignment is to create a class address book that can contain 100 entries of Address Book Entry objects. But i have errors. Please help me to have correct output for my program.


Thank you!
Hello!

This is not bad program as for start.
So what is wrong there?
What do you expect and what do you suffer from?
 

Rose Montejo wrote:My assignment is to create a class address book that can contain 100 entries of Address Book Entry objects. But i have errors. Please help me to have correct output for my program.


Hi Rose, and welcome to JavaRanch.

Like Volodymyr, I have no idea what your problem is, because you haven't told us, and ItDoesntWorkIsUseless (←click).

Are you getting compiler errors? Or does it run, but just not do what you want? TellTheDetails.

Oh, and I suggest you EaseUp; lots of exclamation marks don't get your post answered any quicker (in fact, possibly the reverse); so you might want to think about changing your subject line to something a bit calmer.

Winston
Well Rose, a quick look at your code tells me the reason why you got the error's. Now here is the best part of the story, Almost all the errors were related to methods that dont exist in your code. So this leads me to wonder, "Are you sure, you have written this code?", because if that is so, then sadly you forgot to write code for methods like "setName(), setAdd(), setPhoneNo(), setEmail(), getInfo(), getInfo2(), getName()"
Do write code for these methods and let us know if you still get any errors.
Oh. I'm sorry everyone. I forgot to put what my problem is.

So here it is.
My problem are the line 55-105 & 120.

I tried my best but my best isn't enough.

I need your suggestion folks. Thanks by the way for the people who will help me.
@Ashish Dutt already noticed your problem and advised solution.

However, It would be great to start learning Java with some good book on Java core.
Also do a lot of code on Java core.

 

Rose Montejo wrote:
My problem are the line 55-105 & 120.


Then delete them - problem solved!!!

Seriously...

If you want us to help, then you must TellTheDetails. That means - at minimum - Does it compile? Does it run? Does it crash when it does run? Does it give output different than what you expect? What did you expect, and what did it give.

If you have SPECIFIC questions about something, then ask that. You cannot expect anyone here to take their valuable time to look at 120+ lines of code saying you need help with almost half.
Won't you be my neighbor? - Fred Rogers. tiny ad:
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA


This thread has been viewed 2441 times.

All times above are in ranch (not your local) time.
The current ranch time is
Aug 22, 2018 02:13:53.