diff --git a/Week9/Assignment9/bin/ArrayUtility.class b/Week9/Assignment9/bin/ArrayUtility.class index aeab885..5d2cee3 100644 Binary files a/Week9/Assignment9/bin/ArrayUtility.class and b/Week9/Assignment9/bin/ArrayUtility.class differ diff --git a/Week9/Assignment9/bin/ArrayUtilityTest.class b/Week9/Assignment9/bin/ArrayUtilityTest.class index 10aaa1f..d3e028f 100644 Binary files a/Week9/Assignment9/bin/ArrayUtilityTest.class and b/Week9/Assignment9/bin/ArrayUtilityTest.class differ diff --git a/Week9/Assignment9/src/ArrayUtility.java b/Week9/Assignment9/src/ArrayUtility.java index fe43f18..b57f6c7 100644 --- a/Week9/Assignment9/src/ArrayUtility.java +++ b/Week9/Assignment9/src/ArrayUtility.java @@ -34,7 +34,7 @@ public class ArrayUtility { if(n<=0) return new int[0][0]; //Return to prevent ArithmeticException: / by zero and negative array index if (d.length%n!=0)return new int[0][0]; //Return, empty array, array can't be split into n equal parts int[][] splittedArray = new int[n][d.length/n]; //Create the splitted_array array and initialize it - for(int i = 0;i < n;i++)for(int j = 0;j