![]() |
clear console
i write this funtion to clear the console but it says thet clear not defined for console class
import java.lang.*; import java.util.*; import java.io.Console; public void ClearConsole() { Console console = System.console(); if (console == null) System.out.println("Couldn't get Console object !"); console.clear();/////////// getting the error from this line } is there any other imports to write ???? or is there any other way to clear the console? thx |
Re: clear console
Duplicate of clear console. Thread closed. Please use the same thread to reply back.
|
| All times are GMT +5.5. The time now is 23:06. |