We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Java
- Introduction
- Java End-of-file
- Discussions
Java End-of-file
Java End-of-file
Sort by
recency
|
1059 Discussions
|
Please Login in order to post a comment
can anybody explain me what the question was i didnt understand the question
import java.io.; import java.util.;
public class Solution {
}
int i,count=0; Scanner sc =new Scanner(System.in); for(i=1;sc.hasNextLine();i++){ count++; System.out.println(count+ " "+sc.nextLine()); } } }
}