Some question about java pogramming(clear screen)

Discussion in 'Java' started by qqjay89, Sep 21, 2009.

  1. qqjay89

    qqjay89 New Member

    Joined:
    Jan 8, 2009
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    i am new for java, in C++ we have the code system("cls") for clear screen, but in java which code can i use to clear the screen??
     
  2. nimesh

    nimesh New Member

    Joined:
    Apr 13, 2009
    Messages:
    769
    Likes Received:
    20
    Trophy Points:
    0
    Occupation:
    Oracle Apps Admin
    Location:
    Mumbai
    Home Page:
    http://techiethakkar.blogspot.com
    Try these

    System.out.println("/033"); [Source]

    System.out.println ((char)27 + "[2J");[Source]
     
  3. SaswatPadhi

    SaswatPadhi ~ Б0ЯИ Τ0 С0δЭ ~

    Joined:
    May 5, 2009
    Messages:
    1,342
    Likes Received:
    55
    Trophy Points:
    0
    Occupation:
    STUDENT !
    Location:
    Orissa, INDIA
    Home Page:
    http://www.crackingforfun.blogspot.com

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice