Jump to content

Clrscr() in java

- - - - -

  • Please log in to reply
1 reply to this topic

#1
jbenghazi

jbenghazi

    Newbie

  • Members
  • Pip
  • 3 posts
Hello,
I am a beginner in Java programming.
I WANT TO KNOW HOW TO DELETE A SCREEN AFTER USE.
Thank you for your help.

#2
gregwarner

gregwarner

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 853 posts
  • Location:Arkansas
Only way I can find to do this would be a system command:

Runtime.getRuntime().exec("cls");

Source: Java: Clear the console - Stack Overflow
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.

– Douglas Hofstadter, Gödel, Escher, Bach: An Eternal Golden Braid





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users