I was looking some methods of PrintStream class and came across write() and as per the docs to print in the console we need to call System.out.flush();
.But my doubt is if I write these lines
System.out.write(40);
System.out.write(10);
Then also (
gets printed.I know 10
represents new line but I wanted to know why it only happens with new line.If I write
System.out.write(40);
System.out.write(32); 32 for space then also nothing gets printed.