import java.io.*;public class cc {
public static void main(String args[]) throws IOException{
BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
for(;;){
System.out.println("please input line:");
String s = in.readLine();
if(s.equals("quit")) break;
System.out.println(s);
}
}
}
public static void main(String args[]) throws IOException{
BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
for(;;){
System.out.println("please input line:");
String s = in.readLine();
if(s.equals("quit")) break;
System.out.println(s);
}
}
}
解决方案 »
- 解决Socket通信怎么区分两条不同的数据
- 用线程编的时钟不走字啊
- 请问如何在swing中加入显示系统时间的部分
- java文件编译后的.class 用打开方式 打了下+>记事本,不小心点了永久方式 ,后删了重新编译.JAVA文件,后的.class 文件,还是出现输出乱码.怎
- 为什么用FileWriter,BufferedWriter把jpg文件写入另一jpg文件失败呢?
- 谁有开发ca服务器的经验?
- 谁知道哪里能DOWN到JBuilder 7.0以及Crack啊.
- Runtime.getRuntime().exec一个很奇怪的问题~~~
- 求助:Exception in thread "Thread-3" java.lang.NullPointerException
- Thread sleep 与GC的关系
- 各位能否告诉我System.getProperty具体如何使用啊,我找不到资料,拜托了!
- !!寻求杭州JAVA方面的工作,主要为了增加工作经验……薪水不看中
用字符串是不必用数组啊
要不你就不能用s.equals("quit")方法了