Java School project