Do you mean readSettings() (not getsettings())?
To call it from the main, you need to make readSettings() static, by saying: public static void readSettings(). From there, since the...
Type: Posts; User: aussiemcgr
Do you mean readSettings() (not getsettings())?
To call it from the main, you need to make readSettings() static, by saying: public static void readSettings(). From there, since the...
Every method you call, and every outside variable you reference, inside of a static method MUST be static.
So, if I had that same example and didn't create a new Object, I would say:
public...
Yeah, that'll happen. It has to do with what the word static means. I don't know about what others do, but it is for that reason that I try to limit the amount I do in the main. For example, if I was...
CrestaMan, what languages have you learnt? Java is not a difficult language once you get used to the structure. It might be easier for you to learn java if we compare it to other languages that you...