java class correction