Search:

Type: Posts; User: aussiemcgr

Search: Search took 0.10 seconds.

  1. Replies
    12
    Views
    1,741

    Re: Where does the program start?

    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...
  2. Replies
    12
    Views
    1,741

    Re: Where does the program start?

    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...
  3. Replies
    12
    Views
    1,741

    Re: Where does the program start?

    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...
  4. Replies
    12
    Views
    1,741

    Re: Where does the program start?

    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...
Results 1 to 4 of 4