问答详情
源自:3-3 Java中的赋值运算符

这样就对了~

public class HelloWorld{

    public static void main(String[] args) {

   int one = 10 ;

        int two = 20 ;

        int three = 0 ;

        System.out.println(three+=one+two);

        System.out.println(three+=one);

        System.out.println(three-=one);

        System.out.println(three*=one);

        System.out.println(three/=one);

        System.out.println(three%=one);



提问者:一季微光 2014-11-18 16:00

个回答