import java.io.*;
public class Test{
public static void main(String[] args)throws Exception{
int ch = 0;
System.out.println("Ready?");
if((ch=System.in.read())==13){//回车
// if((ch=System.in.read())==10)//换行
System.out.println("ok");
}else{System.exit(0);}
}
}
public class Test{
public static void main(String[] args)throws Exception{
int ch = 0;
System.out.println("Ready?");
if((ch=System.in.read())==13){//回车
// if((ch=System.in.read())==10)//换行
System.out.println("ok");
}else{System.exit(0);}
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货