java system.out.println clear screen code example Example: java clear console Runtime.getRuntime().exec("cls");