You are viewing a single comment's thread. Return to all comments →
You can make it more simpler by just typing this.
Scanner scan = new Scanner(System.in); while(scan.hasNext()) System.out.println(scan.next());
You are just printing a value not passing it to 'a'
Seems like cookies are disabled on this browser, please enable them to open this website
Java Stdin and Stdout I
You are viewing a single comment's thread. Return to all comments →
You can make it more simpler by just typing this.
Scanner scan = new Scanner(System.in); while(scan.hasNext()) System.out.println(scan.next());
You are just printing a value not passing it to 'a'