From f14ed8ab09af447cb8b37e69b75e8f96fee9193b Mon Sep 17 00:00:00 2001 From: LiiNi-coder <97495437+LiiNi-coder@users.noreply.github.com> Date: Sun, 19 Oct 2025 23:40:08 +0900 Subject: [PATCH] =?UTF-8?q?[20251019]=20PGM=20/=20LV2=20/=20JadenCase=20?= =?UTF-8?q?=EB=AC=B8=EC=9E=90=EC=97=B4=20=EB=A7=8C=EB=93=A4=EA=B8=B0=20/?= =?UTF-8?q?=20=EC=9D=B4=EC=9D=B8=ED=9D=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...4 \353\247\214\353\223\244\352\270\260.md" | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 "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" 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(); + } +} + +```