Java Program Error Correction Model