I have the following code:
Scanner in = new Scanner (System.in); String[] data = new String[5]; System.out.println(\"Please, enter the name of the customer orde
next() -- Finds and returns the next complete token from this scanner nextLine() --Advances this scanner past the current line and returns the input that was skipped.
From the java API documentation.