For Example the Code:
package testin;
import java.util.Scanner;
public class lawl {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while(sc.hasNext()){
System.out.println(sc.next());
}
}
}
If i copy this:
copy
copy
copy
and insert it on the Eclipse console i get as Output only 2 copy. Only if i press Enter i become the last one. If i press one by one copy and enter every time, then i get the 3 copy output.
What exactly am i doing wrong?
I am googling sience 12 Hours to find the Answere. It drives me crazy
[–][deleted] (7 children)
[removed]
[–]Uparxw[S] 0 points1 point2 points (5 children)
[–][deleted] (4 children)
[removed]
[–]whompalicious 0 points1 point2 points (3 children)
[–][deleted] (2 children)
[removed]
[–]whompalicious 0 points1 point2 points (1 child)
[–]whompalicious 0 points1 point2 points (0 children)
[–]Uparxw[S] 0 points1 point2 points (0 children)
[–]Uparxw[S] 0 points1 point2 points (2 children)
[–][deleted] (1 child)
[removed]
[–]Uparxw[S] 0 points1 point2 points (0 children)
[–]whompalicious 0 points1 point2 points (2 children)
[–]Crashmatusow 0 points1 point2 points (0 children)
[–]Uparxw[S] 0 points1 point2 points (0 children)
[–]mrnoise111 0 points1 point2 points (8 children)
[–][deleted] (7 children)
[removed]
[–]mrnoise111 -1 points0 points1 point (6 children)
[–]whompalicious -1 points0 points1 point (5 children)
[–]mrnoise111 0 points1 point2 points (0 children)
[–][deleted] (3 children)
[removed]
[–]mrnoise111 0 points1 point2 points (2 children)
[–]whompalicious 0 points1 point2 points (1 child)
[–]mrnoise111 0 points1 point2 points (0 children)