You are viewing a single comment's thread. Return to all comments →
Write String s= sc.nextLine(); not sc.next();
Java End-of-file
You are viewing a single comment's thread. Return to all comments →
Write String s= sc.nextLine(); not sc.next();