Java code for functions but no return or void yet