





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






68
70
// Return maximum element in A[i..j] int findMax(int[] A, int i, int j) { ... }
74
76
if (i >= 0 && i < a.length ) return a[i]; else throw new ArrayIndexOutOfBounds();
80
while ((s = ...) != null) { try { FileInputStream f = new FileInputStream(s); ... } catch (FileNotFoundException e) { System.out.println(s + “ not found”); } } 81
82