主题:怎么从键盘接受一个大写字母
char tmp;
String stmp = "开始符为:";
InputStreamReader din = new InputStreamReader(System.in);
BufferedReader in = new BufferedReader(din);
tmp=in.read();
if(tmp!=null)
if(tmp>='A'&&tmp<='Z')
stmp=stmp+tmp;
知道是匹配问题
可是不知道怎么修改
String stmp = "开始符为:";
InputStreamReader din = new InputStreamReader(System.in);
BufferedReader in = new BufferedReader(din);
tmp=in.read();
if(tmp!=null)
if(tmp>='A'&&tmp<='Z')
stmp=stmp+tmp;
知道是匹配问题
可是不知道怎么修改