🤔 기존 if else 문
if (resource.exists() || resource.isReadable()) {
isFile=true;
}
else {
isFile=false;
}
🧐 단순화한 if else 문
isFile= resource.exists() || resource.isReadable();
😆
💪 출처 및 도움주신분들
'해결된 문제' 카테고리의 다른 글
IntelliJ에서 properties 인코딩 깨질때 설정 방법 (Mac) (0) | 2022.03.23 |
---|---|
JS에서 오브젝트 복사하기 Object.assign .map() 사용 (0) | 2022.03.18 |
Mac m1 Monterey에서 MongoDB 부시기 (0) | 2022.02.14 |
a href 태그 자동 실행 방법 click() 함수사용 (0) | 2022.01.24 |
친구 숙제 파이썬 2문제 (0) | 2022.01.10 |