J.P. Morgan Interview Question

Tell us the errors in this Java code and correct it (you get handed 3-4 simple Java programs)