We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b934a40 commit f14ed8aCopy full SHA for f14ed8a
LiiNi-coder/202510/19 PGM JadenCase 문자열 만들기.md
@@ -0,0 +1,27 @@
1
+```java
2
+import java.util.*;
3
+
4
+class Solution {
5
+ public String solution(String s) {
6
+ StringBuilder answer = new StringBuilder();
7
+ boolean isStartOfWord = true;
8
+ for (int i = 0; i < s.length(); i++) {
9
+ char c = s.charAt(i);
10
11
+ if (c == ' ') {
12
+ answer.append(c);
13
+ isStartOfWord = true;
14
+ } else {
15
+ if (isStartOfWord) {
16
+ answer.append(Character.toUpperCase(c));
17
18
+ answer.append(Character.toLowerCase(c));
19
+ }
20
+ isStartOfWord = false;
21
22
23
+ return answer.toString();
24
25
+}
26
27
+```
0 commit comments