/** Source code example for "A Practical Introduction to Data Structures and Algorithm Analysis, 3rd Edition (Java)" by Clifford A. Shaffer Copyright 2008-2011 by Clifford A. Shaffer */ import java.io.*; // This program tests a bunch of various code fragements from // Chapter 3, mainly for syntactic correctness. class Ch3 { static void sort(int[] A) {} static int value(int i) { return i; } 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 tmp; int[] A = new int[n]; int[][] AA = new int[n][n]; for (i=0; i