為什么不循環(huán)打印
String?info?=?null; while?((info?=?br.readLine())!=null)?{ System.out.println("我是服務器:"+info); }
條件為真,應該循環(huán)打印 ??
我是服務器:+info
為什只打一遍
String?info?=?null; while?((info?=?br.readLine())!=null)?{ System.out.println("我是服務器:"+info); }
條件為真,應該循環(huán)打印 ??
我是服務器:+info
為什只打一遍
2017-03-31
舉報
2017-09-27
你這個基礎(chǔ)太差,得把以前的學好點
2017-04-01
while的使用你都忘了
while()括號里面指的是限定條件,也就是需要讀取的內(nèi)容為空的時候,條件不成立,不在進行打印操作
2017-03-31
打一遍條件就打完啦,再下次循環(huán) info 就讀成 null 了