Originally Posted by moist
Deloch, i ran the code in jCreator and it coughed up the following error message:
"non-static method getName() cannot be referenced from a static context"
The strange thing is that getName() method is under main so i don't understand why it's coughing up this error message.
That's because, getName() method is a non static method, and it can not be called from a static method main().
make the geName() method static, and error will go away.