程序一:
String s;
while((s=one.readLine())!=null){
System.out.println(s);
}程序二:
String s=one.readLine();
while(s!=null){
System.out.println(s);
s=readLine();
}为什么这两个程序输出结果不一样?readLine
String s;
while((s=one.readLine())!=null){
System.out.println(s);
}程序二:
String s=one.readLine();
while(s!=null){
System.out.println(s);
s=readLine();
}为什么这两个程序输出结果不一样?readLine
解决方案 »
- jquery动态树创建!
- 关于hibernate连接数据库的问题
- 各位大侠!求指导啊!
- spring和hibernate集成不自动提交事务
- Cannot create JDBC driver of class '' for connect URL 'null'
- 为什么找不到页面?
- 在网站上开发一个可以和用户进行实时对话的系统,该用什么程序做?大家谁能给我提供一下思路?
- jre授权问题
- Jboss是什莫东东,那位打下可以解释一下??
- 无法将 NULL 插入
- var a ={'key1':{key12:value12,key13:value13},'key2':{key22:value22}} 如何追加元素
- 文章阅读数量统计怎么实现的???
String s=one.readLine();
while(s!=null){
System.out.println(s);
s=one.readLine();
}是lz笔误么?