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
|
1051 Discussions
|
Please Login in order to post a comment
public class Solution {
}
Scanner s = new Scanner(System.in); for(int i =1; s.hasNext();i++){ System.out.println(i + " " + s.nextLine()); } s.close();
Scanner s = new Scanner(System.in); for(int i =1; s.hasNext();i++){ System.out.println(i + " " + s.nextLine()); } s.close();
import java.io.; import java.util.; import java.text.; import java.math.; import java.util.regex.*;
public class Solution {
}