자바 문자열 공백 체크1 [Java] 문자열 공백 체크 코드 private static boolean isBlank(String str) { int strLen; if (str == null || (strLen = str.length()) == 0) { return true; } for (int i = 0; i < strLen; i++) { if ((!Character.isWhitespace(str.charAt(i)))) { return false; } } return true; } 2019. 6. 13. 이전 1 다음