Skip to main content
Jack Ezra
My moral in life is simple, you treat me good and I'll definitely treat you better.
Asked a question 2 years ago

c++ how to clear console?

Where am I?

In answerQA you can ask and answer questions and share your experience with others!

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();  

}