File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes how to clear the cmd? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "how to clear the cmd?" Watch "how to clear the cmd?" New topic

how to clear the cmd?

Ranch Hand

Joined: Jun 16, 2004
Posts: 41
I am trying to find out how to clear an msdos screen using java. can anyone write a small example for me
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
for(int x = 0; x < 30; x++) System.out.println();
I agree. Here's the link:
subject: how to clear the cmd?
It's not a secret anymore!