seokju2ng/ColorGalliCups_Single

기본 라이브러리, 서드파티 라이브러리를 활용해주세요.

Opened this issue · 0 comments

스트링의 값을 확인할 때는

StringUtils.isEmpty(name) 호출만 해주면, null check, empty string check를 함께 해줍니다.

이 외에도 대부분의 프리미티브 타입의 유틸클래스는 이미 다 존재합니다.

apache재단의 라이브러리나 구글의 guava를 살펴보시면 좋을 것 같습니다.

if(name == null || name.equals("") || score < 0) {