Skip to main content

C++ (Programming Language)
1 follower
2 questions
0 posts

Do you have questions about C++ (Programming Language)?

Log in to ask questions about C++ (Programming Language) publicly or anonymously.

Thomas
Life Is Not About Waiting For The Storm To Pass, But Learning To Dance In The Rain

In java, there is a function to clear console and not a command ,like in C++ there is a command :

system("CLS");

In java, there is a function :

public static void clearScreen() {  

   System.out.print("\033[H\033[2J");  

   System.out.flush();  

}

Christian
"The only way to do great work is to love what you do. If you haven't fount it yet, keep looking. Don't Settle,"

In java, there is a function to clear console and not a command ,like in C++ there is a command :

system("CLS");

In java, there is a function :

public static void clearScreen() {  

   System.out.print("\033[H\033[2J");  

   System.out.flush();  

}