Java case study