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
|
1117 Discussions
|
Please Login in order to post a comment
solution:
Scanner in = new Scanner(System.in); int lineNumber=1; while (in.hasNextLine()) { String line = in.nextLine(); System.out.println(lineNumber + " " + line); lineNumber++; //
public class Solution {
}
Scanner sc = new Scanner(System.in); String x = sc.nextLine(); String y = sc.nextLine(); String z = sc.nextLine(); System.out.println("1 "+x); System.out.println("2 "+y); System.out.println("3 "+z);
import java.io.; import java.util.; import java.text.; import java.math.; import java.util.regex.*;
public class Solution {
}
import java.io.; import java.util.;
public class Solution {
}