美女 我这是咋回事
C:\Users\Administrator\Desktop\lianxi>javac Trans.java
.\BufferedWriter.java:1: 错误: 需要<标识符>
class
^
.\BufferedWriter.java:11: 错误: 需要class, interface或enum
FileWriter fw =new FileWriter("123.text");
^
.\BufferedWriter.java:12: 错误: 需要class, interface或enum
BufferedWriter bufw = new BufferedWriter(fw);//缓冲区
^
.\BufferedWriter.java:13: 错误: 需要class, interface或enum
bufw.write();
^
.\BufferedWriter.java:14: 错误: 需要class, interface或enum
bufw.flush();
^
.\BufferedWriter.java:15: 错误: 需要class, interface或enum
bufw.close();
^
.\BufferedWriter.java:19: 错误: 需要class, interface或enum
FileReader fr = new FileReader("123.text");
^
.\BufferedWriter.java:20: 错误: 需要class, interface或enum
BufferedReader bufr = new BufferedReader(fr);//缓冲区
^
.\BufferedWriter.java:22: 错误: 需要class, interface或enum
String s = bufr.readLine();
^
.\BufferedWriter.java:23: 错误: 需要class, interface或enum
System.out.println(s);
^
.\BufferedWriter.java:24: 错误: 需要class, interface或enum
String s1 = bufr.readLine();
^
.\BufferedWriter.java:25: 错误: 需要class, interface或enum
System.out.println(s1);
^
.\BufferedWriter.java:26: 错误: 需要class, interface或enum
bufr.close();
^
.\BufferedWriter.java:29: 错误: 需要class, interface或enum
String line = null;
^
.\BufferedWriter.java:30: 错误: 需要class, interface或enum
while ((line = bufr.readLine())!=null)
^
.\BufferedWriter.java:33: 错误: 需要class, interface或enum
}
^
Trans.java:9: 错误: 无法访问BufferedWriter
BufferedWriter bufw =
^
错误的源文件: .\BufferedWriter.java
文件不包含类BufferedWriter
请删除该文件或确保该文件位于正确的源路径子目录中。
17 个错误
C:\Users\Administrator\Desktop\lianxi>
|