You are viewing a single comment's thread. Return to all comments →
My Solution:
BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); String str ; int n =0; while((str=input.readLine())!=null ) { n = n+1; System.out.println(n +" "+str); }
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 →
My Solution: