Originally posted by Maureen Charlton:
In my course notes it states that 'The method has a return type of Object'.
Is this referring to Object being a String?
To answer your question directly, look at this line in the code:
Your notes are referring to the
word "Object" here.
Also, as noted above, there are other problems with the code you posted. Have you tried to compile it?
Layne