The INPUT = new new Scanner Scanner (System.in);
System.out.print ( "Please enter a number :( finally enter the end !!)");
String Line = input.nextLine ();
Scanner INPUT1 = new new Scanner (Line) ;
the Node the Node new new E = ();
the while (input1.hasNext ()) {
e.add (E, input1.nextInt ());
}
provided two first Scanner reads data in units, so that the equivalent of a carriage return (Enter) as a terminator,
and then to read the second character string passed Scanner, and then processing is performed
In the case of JAVA do not know how much of the amount of data to enter the end input
Guess you like
Origin www.cnblogs.com/SGRS/p/11520321.html
Recommended
Ranking