I'm pretty ignorant about this myself.
I tried your suggestion and it doesn't compile:
Error(202): method checkAttempt(edu.msu.lite.JHomework.Attempt, int) not
found in class java.lang.Object
John Brecht
Department of Physics and Astronomy
Michigan State University
[EMAIL PROTECTED]
> > theSolver = (Solver)(theInstance);
>
> Forgive my ignorance but why are you doing an explicit upcast?
> I thought that sort of thing wasn't necessary in Java.
> Why can't you make a direct call:
>
> theInstance.checkAttempt();
>
> ?
>
> ***********************************************************
> Brett Knights 626-432-5767 work
> [EMAIL PROTECTED] 626-355-1017 home
> ***********************************************************
>
>
>
>
> ----------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> READ THE FAQ!!!! <http://java.apache.org/faq/>
> Archives and Other: <http://java.apache.org/main/mail.html/>
> Problems?: [EMAIL PROTECTED]
>
>
----------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
READ THE FAQ!!!! <http://java.apache.org/faq/>
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]