求大神解答,怎么錯的?
public class HelloWorld{
??? public static void main(String[] args) {
???? int one = 10 ;
??????? int two = 20 ;
??????? int three = 0 ;
??????? there=one+two;
??????? System.out.println("there=one+two==>"+there);
??????? there+=one;
??????? System.out.println("there+=one==>"+there);
??????? there-=one;
??????? System.out.println("there-=one==>"+there);
??????? there*=one;
??????? System.out.println("there*=one==>"+there);
??????? there/=one;
??????? System.out.println("there/=one==>"+there);
??????? there%=one;
??????? System.out.println("there%=one==>"+there);
??
?}
}
2019-03-21
前面定義的three到后面就寫成了there。
2019-03-21
three