You are viewing a single comment's thread. Return to all comments →
here is my solution
import java.io.*; import java.util.*; public class Solution { public static void main(String[] args) { Scanner in=new Scanner(System.in); String a; int i=1; while(in.hasNext()) { a=in.nextLine(); System.out.println(i+" "+a); i++; } } }
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 →
here is my solution