- 判断相当用“==”双等于号
-
package com.itheima.operator;
public class Qperator4 {
public static void main(String[] args) {
int a=10;
int b=5;
System.out.println(a=b);//输出结果为5,因为把b值为5赋值给了a
}
}
package com.itheima.operator;
public class Qperator4 {
public static void main(String[] args) {
int a=10;
int b=5;
System.out.println(a=b);//输出结果为5,因为把b值为5赋值给了a
}
}