반응형

 

📝Boolean OR절 축약

int areaCode = detail.get("areaCode").asInt();
boolean isAreaCodeValid = areaCode == 1 || areaCode == 2 || areaCode == 31;

 

반응형