Topic: 请帮我找出错误 |
Print this page |
1.请帮我找出错误 | Copy to clipboard |
Posted by: 丫丫 Posted on: 2007-10-26 15:39 今天编程有点问题,是我基础打的不好。还请个位高人多多指教把正确的方法帮我写上,我仅仅是一个初学者 谢谢! 下面是程序 public class CharChange { public static void main(String[]args) { char a1; a1=(char)System.in.read(); try { if(a1>A&&a1<Z) } catch(Exception e) { System.out.print("异常信息:"+a1+"您输入的不是大写字母"); } } } 下面是出现的错误: Chatchange.java:10: 非法的表达式开始 } |
2.Re:请帮我找出错误 [Re: 丫丫] | Copy to clipboard |
Posted by: zyj0021 Posted on: 2007-10-27 08:20 if(a1>A&&a1<Z) 后面的代码块呢?? |
3.Re:请帮我找出错误 [Re: 丫丫] | Copy to clipboard |
Posted by: JiafanZhou Posted on: 2007-10-27 21:05 You are actually wasting my time here to look at this "problem"!! This type of mistake should not be forgiven!! I propose that you should really learn Java syntax thoroughly. I know you may just be a novice, buta... even this, I don't think you know programming at all! Regards, Jiafan |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |