Final project java programming