From c90683e064cebf0e1e934417c9644e185d87f436 Mon Sep 17 00:00:00 2001 From: lkhyun <102892446+lkhyun@users.noreply.github.com> Date: Mon, 1 Dec 2025 17:48:52 +0900 Subject: [PATCH] =?UTF-8?q?[20251201]=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=EA=B0=95=ED=98=84?= 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" | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 "lkhyun/202512/PGM Lv2 JadenCase \353\254\270\354\236\220\354\227\264 \353\247\214\353\223\244\352\270\260.md" 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(); + } +} +```