10.2 Java Function