this works in linux, not sure if it would in windows, but i'm thinking it should.
import this:
Code:
import java.lang.Runtime;
in your class method where you want to clear the dos screen, declare a Runtime object:
and then run the rt.exec() command in your class's method:
that rt.exec() command takes a string for the command to run and cls is the command to clear the dos screen. hope that helps you.