The method readLine() from the type DataInputStream is deprecated
KG071 2010-04-28 09:03:50 import java.io.*;
public class TestreadLine {
public static void main(String[] args) throws IOException {
DataInputStream in = new DataInputStream(System.in);
String str;
System.out.println("Enter lines of text");
System.out.println("Enter 'End' to quit!");
do {
str = in.readLine(); //在readline上出现了删除线 并出现如标题提示
System.out.println(str);
} while(!str.equals("End"));
}
}
提示:The method readLine() from the type DataInputStream is deprecated
程序仍可正常执行 不知道提示什么意思 请高手解答下