diff --git "a/LiiNi-coder/202510/19 PGM JadenCase \353\254\270\354\236\220\354\227\264 \353\247\214\353\223\244\352\270\260.md" "b/LiiNi-coder/202510/19 PGM 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..c6b06d4c --- /dev/null +++ "b/LiiNi-coder/202510/19 PGM JadenCase \353\254\270\354\236\220\354\227\264 \353\247\214\353\223\244\352\270\260.md" @@ -0,0 +1,27 @@ +```java +import java.util.*; + +class Solution { + public String solution(String s) { + StringBuilder answer = new StringBuilder(); + boolean isStartOfWord = true; + for (int i = 0; i < s.length(); i++) { + char c = s.charAt(i); + + if (c == ' ') { + answer.append(c); + isStartOfWord = true; + } else { + if (isStartOfWord) { + answer.append(Character.toUpperCase(c)); + } else { + answer.append(Character.toLowerCase(c)); + } + isStartOfWord = false; + } + } + return answer.toString(); + } +} + +```