我把手放兜里了_0_
2018-03-18 19:26
public class three18 {
public static void main(String[] args) {
int one = 10 ;
int two = 20 ;
int three = 0 ;
three=one+two;
System.out.println("three=one+two==>"+three);
three+=one;
System.out.println("three+=one==>"+three);
three-=one;
System.out.println("three-=one==>"+three);
three*=one;
System.out.println("three*=one==>"+three);
three/=one;
System.out.println("three/=one==>"+three);
three%=one;
System.out.println("three%=one==>"+three);
}
}
第一行错了,把public class three18改为public class HelloWorld就行了,因为class后面的HelloWorld要与Java的文件名相同,题目默认是Helloworld.java.
我也是卡在这里
000
public class three18 你的这个类 three18 是什么鬼,题目里默认的是 HelloWorld
Java入门第一季(IDEA工具)升级版
1165559 学习 · 17587 问题
相似问题