#2 Generate and compile java class