목록간결 (1)
작콩큰콩
boolean 을 사용하는 간결한 방법
boolean 을 사용하는 간결한 방법 기존에 했던 방법들 boolean yn = true; String str = "a"; if ( str.equals("a")) { yn = true; } else { yn = false; } 간결한 방법 이렇게 간결했다. 나는 몰랐다. 하하하하 바보 같았… String str = "a"; boolean yn = str.equals("a"); 적용해본 코드 // 문서 기관 조회 public HashMap getDocInstituteGrid(HashMap mapParam, HttpServletRequest request) { HashMap mapReturn = new HashMap(); try { // 조회 조건 UserDTO loginUser = GF.getLoginU..
작은 콩 개발자/JAVA
2023. 6. 2. 16:40