Closed octohedron closed 8 years ago
Hi. The way it works is you put the input on the top of the file. So,
/*input
Hello
*/
class text {
public static void main(String []args) {
try{
Scanner sc = new Scanner(System.in);
String s = sc.nextLine();
System.out.println(s);
} catch( Exception ex){
System.out.println(ex);
}
}
}
prints an empty line, am I missing something?