Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

como limpar a tela do consola no java

public class Principal {
    public static void main(String[] args) {
        System.out.println("Hello World!!!");   // Suja a tela

        try {
            Thread.sleep(1000);     // Espera 1 segundo para ver a mágica acontecer
            new ProcessBuilder("clear").inheritIO().start().waitFor();      // Para linux (acho que para mac também)
        } catch(Exception e) {
            e.printStackTrace();
        }
    }
}
Comment

PREVIOUS NEXT
Code Example
Java :: what is getService() in java 
Java :: how apache shiro remember me works 
Java :: declare variable java 
Java :: how can i put infirmation of arraylist in a dropdown java 
Java :: how to create simple java bean class for login page in eclipse 
Sql :: delete all data in neo4j 
Sql :: sql server search column name in all tables 
Sql :: stop mysql server mac 
Sql :: postgresql reset sequence 
Sql :: identity insert on sql server 
Sql :: remove mysql from centos 7 
Sql :: freemysqlhosting keeps deleting tables 
Sql :: oracle sql limit results 
Sql :: postgresql get table names 
Sql :: Duplicating a MySQL table with all the data Command 
Sql :: this month mysql where 
Sql :: find largest table in mysql database 
Sql :: postgres alter user password 
Sql :: get current date in pyspark sql 
Sql :: postgres change the name of schema 
Sql :: postgres delete from where date is greater than specific date 
Sql :: mysql text to decimal 
Sql :: mysql remove last character 
Sql :: linux command line import mysql database 
Sql :: alter sequence postgres 
Sql :: add super privilege mysql 
Sql :: key validation sql 
Sql :: mysql count lines 
Sql :: SELECT User,Host FROM mysql.user; 
Sql :: set username and password for postgresql database 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =