Search:

Type: Posts; User: Fubarable

Search: Search took 0.03 seconds.

  1. Thread: Why final?

    by Fubarable
    Replies
    17
    Views
    1,342

    Re: Why final?

    I don't know about the others, but I'm still stumped as to what your actual current problem is. I'll be glad to help if you're willing to put more effort into the question.
  2. Thread: Why final?

    by Fubarable
    Replies
    17
    Views
    1,342

    Re: Why final?

    Please clarify your current problem. What exactly isn't working with your current code? Where exactly are you stuck?

    For instance, this statement,


    is very ambiguous (at least to me). When you...
  3. Thread: Why final?

    by Fubarable
    Replies
    17
    Views
    1,342

    Re: Why final?

    Kumar: please do not hijack another persons thread with this type of post. This is considered forum spam and can get you banned.
  4. Thread: Why final?

    by Fubarable
    Replies
    17
    Views
    1,342

    Re: Why final?

    Perhaps it's me, but your question is overly vague and ambiguous for me, too much so to allow me to give a decent answer, other than to suggest that perhaps your Timer variable should be a class...
  5. Thread: Why final?

    by Fubarable
    Replies
    17
    Views
    1,342

    Re: Why final?

    Change t how? You can change the properties of the Tank object that t refers to just fine. You just can't re-assign t to a new Tank object, but you don't want to do that any way since that will have...
  6. Thread: Why final?

    by Fubarable
    Replies
    17
    Views
    1,342

    Re: Why final?

    It is because you are using it in an anonymous inner class, the ActionListener, and only class fields or final local variables may be used inside of anonymous inner classes. I believe that the JVM...
Results 1 to 6 of 6