finish java examples