Ver código fonte

final commit

De'Jon Johnson 6 anos atrás
pai
commit
3d9117d8aa

+ 4
- 4
src/main/java/rocks/zipcode/io/quiz3/arrays/TicTacToe.java Ver arquivo

@@ -30,10 +30,10 @@ public class TicTacToe {
30 30
 
31 31
     public Boolean isRowHomogenous(Integer rowIndex) {
32 32
 
33
-        String[] newArray = board[rowIndex];
34
-        String holder = newArray[0];
35
-        for( int i =0; i<newArray.length; i++)
36
-            if(!newArray[i].equals(holder)){
33
+        String[] differentArray = board[rowIndex];
34
+        String counter = differentArray[0];
35
+        for( int i =0; i<differentArray.length; i++)
36
+            if(!differentArray[i].equals(counter)){
37 37
                 return false;
38 38
             }
39 39