When you print out Strings for debugging you should add an ID before and a delimiter after:
System.out.println("nC="+newCustomer+"<");
Can you post the console from when you execute the...
Type: Posts; User: Norm
When you print out Strings for debugging you should add an ID before and a delimiter after:
System.out.println("nC="+newCustomer+"<");
Can you post the console from when you execute the...
One problem is with the way the Scanner class works. When it reads a whole line into its buffer that includes the lineend character. The nextLine() method removes everything from the buffer...
Please Edit your post and wrap your code with
<YOUR CODE HERE>
to get highlighting and preserve formatting. Without formatting I can't see the nesting logic.
Play computer with the code...