• 2021-04-14
    中国大学MOOC: 2.下面代码片断的输出结果是什么? int n1 = 5; int n2 = 2; System.out.println(" n1= " + (++n1));//结果为:System.out.println(" n1= " + (n1++));//结果为:System.out.println(" n1= " + n1); //结果为:int n3 = n2++; int n4 = ++n2; System.out.println(" n3= " + n3); //结果为:System.out.println(" n4= " + n4); //结果为:System.out.println(" n2= " + n2); //结果为: