how can i use clrscr() function in java programming.....

Recommended Answers

All 3 Replies

:sigh:

System.out.println();

about 50 times.

Rofl S.o.p 50 times...

public class LazyBass{

       public static void main(String[] args) throws Exception{
            System.out.println("Now you see me...");
            Thread.sleep(2500);
            clrscr();
            System.out.println("Now you don't!");
       }

       public static void clrscr(){
           for(int i = 0; i < 56; i++)
               System.out.println();
       }

}

Edit: Looks like 56 is the lucky number!

I used 1 million and my client started to rumble lol

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.