Jared Norris 8 lat temu
rodzic
commit
0b55451bdd
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3
    3
      StringArrayUtils.java

+ 3
- 3
StringArrayUtils.java Wyświetl plik

@@ -74,12 +74,12 @@ public class StringArrayUtils {
74 74
         String[] alpha = {"a","b","c","d","e","f","g","h","i","j",
75 75
                           "k","l","m","n","o","p","q","r","s","t",
76 76
                           "u","v","w","x","y","z"};
77
-        String result = "";   
77
+        String s = "";   
78 78
         int count = 0;
79 79
         for (String e : array) {
80
-            result += e.replace(" ", "");
80
+             s += e.replace(" ", "");
81 81
         }
82
-        String[] check = result.toLowerCase().split("");
82
+        String[] check = s.toLowerCase().split("");
83 83
         for (String letter : alpha) {
84 84
             if (contains(check, letter)) count++;
85 85
         }