/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * * @author jomalley */ public class UtilTester { public static void main( String[] args ) { // reverseTest(); countGradesTest(); } private static void reverseTest() { int [] testData = { 100, 200, 300, 400, 500 }; Util.reverse(testData, testData.length); for( int item : testData ) System.out.println(item); } private static void countGradesTest() { int [] grades = { 75, 89, 50, 67, 88, 93, 74, 85, 83, 92, 81, 78, 65, 83 }; int [] categories = Util.countGrades(grades, grades.length); for( int k = 0; k < categories.length; ++ k ) System.out.println("["+ k+"] " + categories[k]); } }