From 7d5a9656685ce2ec2b2fa853a019947a604f7b71 Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Fri, 30 Oct 2020 10:01:18 +0700 Subject: [PATCH] Add Assumption Comments --- Week9/Assignment9/src/ArrayUtility.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Week9/Assignment9/src/ArrayUtility.java b/Week9/Assignment9/src/ArrayUtility.java index 1964a52..2537b80 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