// Source code example for "A Practical Introduction // to Data Structures and Algorithm Analysis" // by Clifford A. Shaffer, Prentice Hall, 1998. // Copyright 1998 by Clifford A. Shaffer import java.io.*; // Driver class for a simple binsort class Binsimpmain { // Main routine for a simple binsort public static void main(String args[]) throws IOException { Assert.notFalse(args.length == 2, "Usage: Binsimpmain "); int n = Integer.parseInt(args[0]); int cycles = Integer.parseInt(args[1]); int i, j; Elem[] A = new Elem[n]; for (i=0; i