一、赋值运算符
二、赋值运算符的特点
案例演示
public class Assignment {
public static void main(String[] args) {
//+=
int a = 10;
a += 1;
System.out.println(a);//11
//-=
a -= 2;
System.out.println(a);//9
//*=
a *= 2;
System.out.println(a); //18
// /=
a /= 4;
System.out.println(a); //4
}
}