How to clear the screen in the command prompt?

Hello Everyone,
I was wondering how we can clear the screen in the command prompt in Java. I remember we can do this in C by writing system("cls");
What is the best IDE for writing Java programs. Is the NetBeans IDE good? Thank you very much.

I was wondering how we can clear the screen in the
command prompt in Java. I remember we can do this in
C by writing system("cls");I guess there's no Java way of doing that because it's a function of the shell you're calling. If you try to use Runtime.exec on cls, it starts yet another shell, clears that, and closes it again, so it has no effect on your output.
You could try using the '\b' backspace character, if that helps.
What is the best IDE for writing Java programs. Is
the NetBeans IDE good? Thank you very much.By the way you're asking this question, the answer will be almost certainly "none". If you want to, you can search this board for the few million times this question was asked before, pick all IDEs suggested there and use the one you're most comfortable with.

Similar Messages

Maybe you are looking for

  • How do I get presenter tab to show up in powerpoint?

    I downloaded the trial version of presenter 7 (and later got an update 7.01) It worked for about a half hour, while I was recording audio over a powerpoint it came up with a serious error and said to uninstall and re-install. Did that now when I open

  • HT201343 Can a mid-09 Mac Pro be upgraded to accommodate AirPlay?

    Trying to use an older Mac with AppleTV.

  • Unable to read or download pdfs

    When I click on a pdf file I get a white screen and the spinning color wheel, but it never displays or downloads the pdf. I have tried right-clicking and the command-click to invoke Preview but then I only get a pull-down option that says "Copy link.

  • Anchors stuck to guides

    It sometimes happens that anchor points get stuck to guides so that they can only be moved with the arrow keys. The mouse will select them but dragging doesn't move them. I have a feeling that it happens more often on homemade (Cmd+5) guides than rul

  • Retake Quiz results not updated by LMS

    Does Captivate 7 send out a score update every time a test is taken (through a SCORM 1.2 LMS server)? I have the following situation Quiz failed on first attempt As designed, module presented trainee with retake offer. Trainee passes quiz LMS score d