Java Console flush() Method
The flush() method of Console class is used to flushes the console and forces any buffered output to be written immediately .
This method does not return a value.
Hello java code
Starting the write Finished and close