// CharCounter.java // YOUR NAME AND THE DATE HERE public class CharCounter { // NEED AN INSTANCE VARIABLE TO STORE THE ARRAY OF CHARACTERS public CharCounter(char[] theArray) { // ASSIGN THE REFERENCE PARAMETER TO THE INSTANCE VARIABLE } public int count() { return 0; // REPLACE WITH YOUR SOLUTION } public int count(char c) { return 0; // REPLACE WITH YOUR SOLUTION } public int[] countEach(char[] c) { int results[] = new int[c.length]; // FILL UP THE RESULTS ARRAY WITH ACTUAL COUNTS // (e.g., set results[0] to count of c[0] in the instance array) return results; } public int countLetters() { return 0; // REPLACE WITH YOUR SOLUTION } public int countDigits() { return 0; // REPLACE WITH YOUR SOLUTION } public int countOther() { return 0; // REPLACE WITH YOUR SOLUTION } }