class Game{
public static void main(String[] arguments){
int total=0;
int score=7;
if(score==7)
System.out.println("you score a touchdown");
if(score==3)
System.out.println("you kick a field goa!!");
total=total+score;
System.out.println("total score"+total);
}
}
public static void main(String[] arguments){
int total=0;
int score=7;
if(score==7)
System.out.println("you score a touchdown");
if(score==3)
System.out.println("you kick a field goa!!");
total=total+score;
System.out.println("total score"+total);
}
}
解决方案 »
- 如何配置的
- highstock 中文问题
- 用java的Transformer类转换xsl文件到html文件出错
- mysql中datatime字段取出后为什么多一个0
- 寻找兼职工作,代做大学计算机毕业系统设计(java开发)
- 大家到http://www.iaaf.org/community/polls/index.htm 给刘翔投票,给中国人扎起!
- 刚学web services,调用web services时出现问题,请高手帮忙,拜托各位了
- 高分请教~~~!!!JDBC SQLSERVER 的一个问题!!!
- weblogic8.1与mysql的连接问题 帮忙啊
- log4j控制台能输出,但是没有生成日志文件
- CMP中的查询异常,暴简单,感兴趣的进来看看。
- 一个问题~!不知那里出错了~!(FTP)
public static void main(string[] arguments)}
**
int total=o;
int score=7
if(score==7)
system.out.println("you score a touchdown");
if(score==3)
system.out.println("you kick a field goa!!");
total=total+score;
system.out.println("total score"+total);
}
} 大括号 写反了:)粗心
xiaofenguser(风雨) 已经帮你纠正了。
可以很容易解决
2.括号打反了
3.int score=7这一句加上分号;
4.把类声明为public