The signature of StudentRecWithInput
update(int credit, double gpa)
expect int and double, but you are calling it with
StudentRecWithInput.update(Student1);
you need to change the signature to:
update(StudentRec student)
to be able to pass student information into the method.
You also should read more about the difference between static and non static methods, as right now your code have no changes of compiling.