PrintWriter out=new PrintWriter(System.out);
out.flush();
Whats the use of this snippet of code?
Keep_Hustling
flush() method is used for flushing the stream ( i.e. clearing the stream)
You can read more here at GFG.
1 Like