You are viewing a single comment's thread. Return to all comments →
line 2: String s=sc.next(); //this scans for "Hello" thats why you are not getting it in the output, try removing it.
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 →
line 2: String s=sc.next(); //this scans for "Hello" thats why you are not getting it in the output, try removing it.