You are viewing a single comment's thread. Return to all comments →
sc.next(); ----> searches for the first space in the input sc.nextLine(); --> looks for the line change or \n in the input
Seems like cookies are disabled on this browser, please enable them to open this website
Java End-of-file
You are viewing a single comment's thread. Return to all comments →
sc.next(); ----> searches for the first space in the input sc.nextLine(); --> looks for the line change or \n in the input