|
@@ -9,10 +9,10 @@ import java.util.regex.Pattern;
|
9
|
9
|
*/
|
10
|
10
|
public class WaveGenerator {
|
11
|
11
|
public static String[] wave(String str) {
|
12
|
|
- str.toLowerCase();
|
|
12
|
+// str.toLowerCase();
|
13
|
13
|
String[] result = new String[str.length()];
|
14
|
14
|
for (int i = 0; i < str.length(); i++) {
|
15
|
|
- StringBuilder builder = new StringBuilder(str);
|
|
15
|
+ StringBuilder builder = new StringBuilder(str.toLowerCase());
|
16
|
16
|
char c=Character.toUpperCase(str.charAt(i));
|
17
|
17
|
builder.setCharAt(i,c);
|
18
|
18
|
result[i] = builder.toString();
|
|
@@ -32,6 +32,4 @@ public class WaveGenerator {
|
32
|
32
|
return count;
|
33
|
33
|
}
|
34
|
34
|
|
35
|
|
-
|
36
|
|
-
|
37
|
35
|
}
|