how to clere your ouput in code java code example Example: java clear console Runtime.getRuntime().exec("cls");