This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
but on further inspection, I wondered why you passed an EditorBean into the findEditorData() method when you don't ever use it. So I think that you may want to reference the parameter EditorBean's ed object. You just have to change your code to say that you want to use the ed object from the EditorBean parameter:
Now the compiler knows which ed object you want to call the findEditor method on. Jamie [ November 28, 2003: Message edited by: Jamie Robertson ]
Joined: Nov 19, 2000
Thanks for your reply. I deleted the second parameter in the findEditorData(); But, I am still not out of the woods. Now, please help me with my conceptual problem: 1. I got "non-static variable ed cannot be referenced from a static context"
when my code is
The error message was the same after I changed to
2. I then made findEditorData( String username ) non-static
I got this compilation error:
[ November 28, 2003: Message edited by: JiaPei Jen ]