Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

What is the java code to clear the console screen?

  Asked By: Darcy    Date: Jun 28    Category: Java    Views: 4577
  

I have a console program written by java 1.6. I want to clear the screen and
display new data.

what is the command in java to clear console screen output?

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Sonya Flores     Answered On: Jun 28

Below link could answer your query

http://www.daniweb.com/forums/thread107750.html

 
Answer #2    Answered By: Eric Foster     Answered On: Jun 28

Screen clearing is OS and Hardware dependent depending on the platform call the native API function that is able to clear  the screen. lookup Runtime.getRuntime().exec that sould be able to execute a command  com command

 
Didn't find what you were looking for? Find more on What is the java code to clear the console screen? Or get search suggestion and latest updates.




Tagged: