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