|
@@ -7,9 +7,10 @@ public class WaveGenerator {
|
7
|
7
|
public static String[] wave(String str) {
|
8
|
8
|
String[] wave =new String[str.length()];
|
9
|
9
|
for (int i = 0; i < str.length(); i++){
|
10
|
|
- StringBuilder builder = new StringBuilder(str.toLowerCase());
|
11
|
|
- builder.setCharAt(i, Character.toUpperCase(str.charAt(i)));
|
12
|
|
- wave[i] = builder.toString();
|
|
10
|
+ StringBuilder builder = new StringBuilder(str.toLowerCase());
|
|
11
|
+ builder.setCharAt(i, Character.toUpperCase(str.charAt(i)));
|
|
12
|
+ wave[i] = builder.toString();
|
|
13
|
+
|
13
|
14
|
}
|
14
|
15
|
return wave;
|
15
|
16
|
}
|