diff --git "a/lkhyun/202512/PGM Lv2 JadenCase \353\254\270\354\236\220\354\227\264 \353\247\214\353\223\244\352\270\260.md" "b/lkhyun/202512/PGM Lv2 JadenCase \353\254\270\354\236\220\354\227\264 \353\247\214\353\223\244\352\270\260.md" new file mode 100644 index 00000000..39cf15d8 --- /dev/null +++ "b/lkhyun/202512/PGM Lv2 JadenCase \353\254\270\354\236\220\354\227\264 \353\247\214\353\223\244\352\270\260.md" @@ -0,0 +1,24 @@ +```java +class Solution { + public String solution(String s) { + String temp = s.toLowerCase(); + StringBuilder sb = new StringBuilder(); + String[] splits = temp.split(" ",-1); + for (int i = 0; i < splits.length; i++) { + String split = splits[i]; + if (split.isEmpty()) { + } else if (!Character.isDigit(split.charAt(0))) { + sb.append(Character.toUpperCase(split.charAt(0))); + sb.append(split.substring(1)); + } else { + sb.append(split); + } + + if (i < splits.length - 1) { + sb.append(" "); + } + } + return sb.toString(); + } +} +```