Java Console flush() MethodThe flush() method of Console class is used to flushes the console and forces any buffered output to be written immediately . SyntaxParametersNA Return value:This method does not return a value. Example 1Output: Hello java code Example 2Output: Starting the write Finished and close
Next TopicJava Console Class
|