Search:

Type: Posts; User: beennn

Search: Search took 0.42 seconds.

  1. Re: putting a non static variable in a static variable

    I attempted to make an instance of the Skill class which contains the variables, however I was getting "The constructor Skill() is undefined"
  2. Re: putting a non static variable in a static variable

    I'd like to be able to access xp in another class
  3. putting a non static variable in a static variable

    I am trying to move the content of xp to skillXp, and I am getting this error "Cannot make a static reference to the non-static field xp"

    How can I put the contents of non static var xp, into...
  4. Replies
    4
    Views
    324

    Re: Call without being static? [Question]

    Thank you very much
  5. Replies
    4
    Views
    324

    Re: Call without being static? [Question]

    I understand what your saying but I don't understand the definitions well enough to solve it, could you post a short example of what you said please?
  6. Replies
    4
    Views
    324

    Call without being static? [Question]

    I hope this is the right place to post, if not I'm sorry.

    I'm new to Java and I've been having trouble calling a non-static method.

    I want to call

    public boolean updateSession() {...
Results 1 to 6 of 6