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