This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
Look at "num.printInfo();". What is "num" ? It's a String. printInfo() is not a method of the String class. Where is that method ? In the Customer class ? Then you have to call it on a customer, not on a String.
customerSearch should return a Customer, instead of returning a boolean. Then you can use the returned value to print the information. If the returned value is null, then the customerId does not exist.
Joined: May 25, 2009
So I think I understand the concept. but I still need the original customerSearch method because it is used by another method. So I would make a second customerSearchTwo and have it return Customer.