Solved

clear screen

Posted on 2004-10-23
224 Views
Last Modified: 2010-03-31
is their a method for clearing current output in dos window?
0
Question by:BobtheBuidler
    8 Comments
     
    LVL 13

    Expert Comment

    by:petmagdy
    c:\cls
    0
     
    LVL 8

    Expert Comment

    by:sigmacon
    cls

    ( I am assuming you'r asking for the case that you yourself are on the command line. If this is a java scpecific question, you need to be more specific, like what kind of output you want to clean from where .... )
    0
     
    LVL 86

    Expert Comment

    by:CEHJ
    If you mean programmatically and on Windows then practicably you can't AFAIK
    0
     

    Author Comment

    by:BobtheBuidler
    K, well, heres the point of it.

    Im using java and im testing alot of data, need to view alot of output. want to clean it up. basically im asking if theres a way to clear all past output using java code, to where the new output is starting on a clean slate so to say. does java support this or is their a way to do it?
    0
     

    Author Comment

    by:BobtheBuidler
    pardon the previous vagueness, just registered on site. :) very cool.
    0
     
    LVL 8

    Accepted Solution

    by:
    Just print a new line to the screen 25 times (or how often you want it).

    for(int i = 0; i < 30; i++) {
       System.out.println("");
    }
    0
     
    LVL 30

    Expert Comment

    by:GrandSchtroumpf
    > need to view alot of output.
    you can redirect the output to a file, and view the file in a good text editor such as SciTE (free open source).
    0
     

    Author Comment

    by:BobtheBuidler
    Thx guys.
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Learn The Basics of Ethical Hacking & Pen Testing

    Computer and network security is one of the fastest growing and most essential industries in technology, meaning companies will pay big bucks for ethical hackers. This is the perfect course to leap into this lucrative career, learning how to use ethical hacking to reveal ...

    Suggested Solutions

    Title # Comments Views Activity
    Understanding byte in Java 2 28
    Null Boolean Values? 3 32
    Help refactoring a java code 8 37
    FizzBuzz challenge 9 55
    Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
    Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
    Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
    The viewer will learn how to implement Singleton Design Pattern in Java.

    846 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now