import   *;  
  public   class   Test4   {  
  public   static   void   main(String[]   args)   {  
  //clear   the   screen(for   Windows   System)  
  try  
  {  
  Runtime.getRuntime().exec("cmd /c start cls ");
  }  
  catch   (Exception   e)   {  
  System.err.println   ("IOException   "   +   e.getMessage());  
  }  
  System.out.println("Hello");  
  System.out.println("How   are   you!");  
  }  
  }   
通过调用cmd命令来处理!