Reading copeg's example I just realized that I had set my main class to private. No wonder it wasn't working...
Thanks a lot for your time guys!:-bd
Type: Posts; User: frogfury
Reading copeg's example I just realized that I had set my main class to private. No wonder it wasn't working...
Thanks a lot for your time guys!:-bd
It does indeed return the class "player". Is there any way to find out if the method was called with regards to a subclass like orc, elf etc?
Hey guys!
I'm trying to do this:
int x;
x = orc.getFrags; //orc extends player
In class player I have:
What is wrong with this line of code?
System.out.println ( "Incorrect! " + firstAddend + " + " secondAddend + " = " + sum );
firstAddend, secondAddend and sum are variables.
Netbeans...