updated java class