Hi, I use eclipse and just updated to java 1.6 on my computer. I have a problem with a piece of my code:
public static void clearConsole () { Console console = System.console();
console.clear();
}
My Compiler says that it "cannot find symbol" on symbol "clear()". I have tried using a different compiler, and got pretty much the same error:
javac JavaGameDeck2.java
JavaGameDeck2.java:275: cannot find symbol
symbol : method clear()
location: class java.io.Console
console.clear();
1 error
I imported java.io.Console, in the beginning of the program, but it won't work! what should I do?