public class HelloWorld{ public static void main (String[]args) { double kx=78.5; int zx=5; double tx=kx+zx; System.out.println("考试平均分:"+kx) System.out.println("调整后平均分:"+tx) } }
4 回答
习惯受伤
TA贡献885条经验 获得超1144个赞
问题:
1、这一句
public static void main (String[]args) {String[]和args是有空格的,正确如下:
public static void main (String[] args) {或:
public static void main (String args[] ) {
//据阿里巴巴JAVA开发文档写,建议这样写2、后边两句,结尾没有分号;
正确如下:
System.out.println("考试平均分:"+kx)
System.out.println("调整后平均分:"+tx)
添加回答
举报
0/150
提交
取消
