I was trying to clear the console on java using the eclipse IDE and for some reason, the code isn't working how it is supposed to be working. I think it is something to do with me using eclipse and I am wondering if there is an alternative way to do the following code on eclipse.
System.out.print("\033[H\033[2J");
System.out.flush();
the result I am getting from this code is...
[H[2J
if anyone knows away to get around this I will be happy to know.