You are viewing a single comment's thread. Return to all comments →
My test case is failing since the input section is showing test with “{-truncated-}”. On downloading {truncated} does not display.
Code: public static void main(String[] args) {
Scanner in = new Scanner(System.in); for(int i=0; in.hasNext(); i++){ System.out.println(i+ " " +in.nextLine()); } }
Input (stdin)Download Hello world
I am a file
Read me until end-of-file. {-truncated-}
Your Output (stdout) 0 Hello world 1 I am a file 2 Read me until end-of-file.
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 →
My test case is failing since the input section is showing test with “{-truncated-}”. On downloading {truncated} does not display.
Code: public static void main(String[] args) {
Input (stdin)Download Hello world
I am a file
Read me until end-of-file. {-truncated-}
Your Output (stdout) 0 Hello world 1 I am a file 2 Read me until end-of-file.