/** * Is an example of passing a object and using the object with if statements. * * Hunter Lloyd * Feb. 18, 2005 */ public class Driver { public static void main(String [] args) { People first = new People(18, "Helen"); People second = new People(25, "Rick"); People third = new People(40, "Margie"); String older = first.getOlder(second); System.out.println(older + " is the oldest out of " + first.getName() + " and " + second.getName()); System.out.println(third.getOlder(first) + " is the oldest out of " + first.getName() + " and " + third.getName()); } }