Skip to main content
Parker Leo
There are many places beautiful, mind blowing, remarkable and there is peace somewhere
Asked a question last year

how to clear console in c++?

Where am I?

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

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

}