输入输出流的问题 Stream 一类的类应该没有readLine这类的method 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 import java.io.*;class filestreamstest3{public static void main(String args[]){ String b=""; int j=0; try{ BufferedReader in = new BufferedReader(new FileReader("output.txt")); while((b = in.readLine())!=null) { if (b.indexOf("am") != -1) { j = j+1; System.out.println(j); } } in.close(); }catch(FileNotFoundException e){ } catch(IOException e){ } }} 关于执行效率(paramUtils,equals,==) 这带码没看懂 关于jdbc的问题 如何把xdp转换成pdf文件. 如何按字节复制 实在是想不出办法了,只能请教高手了!!!开出手帮忙......... 一个小问题不大明白 哪位仁兄能提供JBuilder8的下载地址?? 我很想学JAVA2,可是我不知道该怎么安装它?用什么安装? 请问怎么对一个数组排序,数组的内容是字符串,可能是单个也可能是多个? 各位仁兄,请赐教!~!~!~ int to string 值转换问题
class filestreamstest3{
public static void main(String args[]){
String b="";
int j=0;
try{
BufferedReader in = new BufferedReader(new FileReader("output.txt"));
while((b = in.readLine())!=null)
{
if (b.indexOf("am") != -1)
{
j = j+1;
System.out.println(j);
} }
in.close();
}catch(FileNotFoundException e){ } catch(IOException e){ }
}
}