说明该方法在API中有替代方法
JAVA不支持你定义的方法

解决方案 »

  1.   

    那是不提倡使用的方法(在老的jdk版本中使用,但为了兼容性没有被删除,这种方法在新的jdk版本中一定有相应的代替方法),可以加参数-deprecation进行编译
      

  2.   

    把javadoc注释中的@deprecated去掉
      

  3.   

    java.io.DataInputStream.readLine() 
              This method does not properly convert bytes to characters. As of JDK 1.1, the preferred way to read lines of text is via the BufferedReader.readLine() method. Programs that use the DataInputStream class to read lines can be converted to use the BufferedReader class by replacing code of the form: 
         DataInputStream d = new DataInputStream(in);
     
    with: 
         BufferedReader d
              = new BufferedReader(new InputStreamReader(in));
     
    解决了,谢!