Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public final static void clearConsole() {
- try {
- final String os = System.getProperty("os.name");
- Runtime.getRuntime().exec(os.contains("Windows") ? "cls" : "clear");
- } catch (final Exception e) {
- e.printStackTrace();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement