public class HelloWorld{
public static void main(String[] args) {
int one = 10 ;
int two = 20 ;
int three = one + two ;
System.out.println(""+three);
int three += one;
System.out.println(""+three);
three -= one;
System.out.println(""+three);
three *= one;
System.out.println(""+three);
three /= one;
System.out.println(""+three);
three %= one;
System.out.println(""+three);
第5行已经申明过,当然不能重复申明了。变量只能一次申明,赋值才允许多次的。