public class ManyReturns { public static void main(String[] args) { System.out.println("max of 5, -6, 8: " + max3(5, -6, 8)); } // This is the fixed version of max3 method found on slide 19 of July // 14th lecture. public static int max3(int a, int b, int c) { if (a >= b && a >= c) { return a; } else if (b >= c && b >= a) { return b; } else { return c; } } }