You are viewing a single comment's thread. Return to all comments →
Worked for me too..
Scanner input = new Scanner(System.in);
int counter = 1;
String line = "";
line = String.format(counter+" "+input.nextLine());
can you explain this
if we want to specify N lines of strings . Syntax???
using for loop