To clear screen in java

I wish to know how to clear screen in java lang as we do in c++ with c

Page 1 of 1

2 Replies - 5953 Views - Last Post: 11 December 2008 - 12:54 PM Rate Topic: -----

#1 findmehere   User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 1
  • Joined: 11-December 08

To clear screen in java

Post icon  Posted 11 December 2008 - 12:42 PM

I wish to know how to clear screen in java lang as we do in c++ with clrscr()



pls forward the answer
I will be thankful


Shubham
Is This A Good Question/Topic? 1

Replies To: To clear screen in java

#2 William_Wilson   User is offline

  • lost in compilation
  • member icon

Reputation: 207
  • View blog
  • Posts: 4,812
  • Joined: 23-December 05

Re: To clear screen in java

Posted 11 December 2008 - 12:51 PM

Can't be done. The only real option would be to print out 100 or so newlines.

To be honest, you probably shouldn't clear the screen in console applications anyway. Creating a gap to distinguish calls/outputs is fine, but I personally dislike when the screen is cleared.
Was This Post Helpful? 0
  • +
  • -

#3 KYA   User is offline

  • Wubba lubba dub dub!
  • member icon

Reputation: 3202
  • View blog
  • Posts: 19,234
  • Joined: 14-September 07

Re: To clear screen in java

Posted 11 December 2008 - 12:54 PM

If you were doing a GUI you could clear in all sorts of ways.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1