how to clear the cmd screen in java code example Example: java clear console Runtime.getRuntime().exec("cls");