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.
subject: trying to call a method but cannot find symbol