瀏覽代碼

something

Seth 6 年之前
父節點
當前提交
a24227f779
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. 4
    3
      src/main/java/rocks/zipcode/io/quiz3/arrays/WaveGenerator.java

+ 4
- 3
src/main/java/rocks/zipcode/io/quiz3/arrays/WaveGenerator.java 查看文件

@@ -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
     }