// 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.*; // This program tests a bunch of various code fragements from // Chapter 3, mainly for syntactic correctness. class Ch3main { static void sort(int[] A, int x) {} static boolean EVEN(int x) { return (x % 1) == 0; } final static int n = 100; public static void main(String args[]) throws IOException { int i, j, k; int sum, sum1, sum2, sum3; int a; int b = 10; int[] A = new int[n]; for (i=0; i