The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.

+OABlist () //creates an empty list with capacity = 5
+size(): int //returns the list size
+addorReplace (in name: String, in number : int) : boolean //adds entry according to alphabetical order of name. if node exists, update phone number without creating additional entry
+getNumber(in name : String) : int //returns phone number corresponding to name or -1 if name not in list. Method must be faster than linear.
+remove(in name: string) :int //returns phone number corresponding to name or -1 if name is not on the list. node storing this info is removed from list. also must be faster than linear
+showList() : void //prints all the elements in the list (name and number)

Re: HELP!! Phone Directory Program

basically, its supposed to print out the list (name, number)...however when i run it it just shows "run OABlist" but it doesn't do anything. And there are no compiler or runtime errors at all...so I was a bit lost on where I was going wrong.