Nathan Hall 6 anni fa
parent
commit
4da7540430

+ 11
- 1
src/main/java/rocks/zipcode/io/quiz3/arrays/SquareArrayAnalyzer.java Vedi File

@@ -5,6 +5,16 @@ package rocks.zipcode.io.quiz3.arrays;
5 5
  */
6 6
 public class SquareArrayAnalyzer {
7 7
     public static Boolean compare(Integer[] input, Integer[] squaredValues) {
8
-        return null;
8
+
9
+
10
+        for (int i = 0; i <= input.length; i++) {
11
+            System.out.println(input[i] * input[i]);
12
+//            System.out.println(squaredValues[i]);
13
+
14
+//            if (squaredValues[i] != (input[i] * input[i])){
15
+//                return false;
16
+//            }
17
+        }
18
+        return true;
9 19
     }
10 20
 }