Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Java SE 综合讨论区  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 大家好我太笨了('else' without 'if')
czg4444





发贴: 7
积分: 0
于 2006-09-02 13:40 user profilesend a private message to usersend email to czg4444search all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list

class IF
{
public static void main(String args[])
{
int x,y;
x=10;
y=20;
if(x!=y);{
if(x>y);
System .out.println("x的值比y的值大。");
else
System .out.println("x的值比y的值大。");
}
else
System.out.println("x的值与y的值相等。");
}}

我太本了
IF.java [11:1] 'else' without 'if'
else
^
IF.java [14:1] 'else' without 'if'
else
^
2 errors
编译 IF. 时出错
请帮帮我
谢谢大家


why edited on 2006-09-02 16:57

QQ群(307628429) 名称:(中国Java开发网) 请大家加入

话题树型展开
人气 标题 作者 字数 发贴时间
9168 大家好我太笨了('else' without 'if') czg4444 519 2006-09-02 13:40
6959 Re:大家好我太笨了 nothing 316 2006-09-02 14:51
7163 Re:大家好我太笨了 Novo 23 2006-09-02 16:31
7116 Re:大家好我太笨了('else' without 'if') lijiye 22 2006-09-04 11:47
6932 Re:大家好我太笨了('else' without 'if') haiming 16 2006-09-04 17:09
7415 Re:大家好我太笨了('else' without 'if') lwfllr 35 2006-09-04 21:36

flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   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