diff --git a/Week8/Assignment8/bin/partC/CountNumbers.class b/Week8/Assignment8/bin/partC/CountNumbers.class index b5900b9..dc28775 100644 Binary files a/Week8/Assignment8/bin/partC/CountNumbers.class and b/Week8/Assignment8/bin/partC/CountNumbers.class differ diff --git a/Week8/Assignment8/src/partC/CountNumbers.java b/Week8/Assignment8/src/partC/CountNumbers.java index 84bdb9b..f3f38e2 100644 --- a/Week8/Assignment8/src/partC/CountNumbers.java +++ b/Week8/Assignment8/src/partC/CountNumbers.java @@ -12,7 +12,8 @@ public class CountNumbers { for(length = 0;sc.hasNextInt();length++)sc.nextInt(); //Use File Scanner to find the number of elements in the file int[] int_array = new int[length]; //Create an array with length number of elements sc = new Scanner(new File("numbers.txt")); //Send the Scanner's cursor to the top of the file - for(int i = 0;i