Looks like the output isn’t flushed - creating the
PrintWriter with a second argument to the constructor with value
autoFlush) seems to do the trick.
Or you could just use
Ohh man how did I forget it. Thank You brother.
But when I had it in custom input it did not gave the error.
Custom Input never does - it just runs the program with the custom input you give it, and tells you what your program output in response (in this case, nothing).
No Passes or Fails - just Input and Output
Thank You Man… this thing is really clearing my doubts …