Results 1 to 3 of 3

Thread: Sharing a static variable.....

  1. #1
    Join Date
    Jul 2006
    Posts
    249
    Rep Power
    0

    Default Sharing a static variable.....

    OK... I have a number of java classes whic i want to work all together.... (they are not declared in a package.....

    I want to use a static variable that I declared in one class in another class....
    how do I do this?

    If I throw everything in a package will this problem will be solved?

    thank you guys...
    "And what's the real lesson? Don't leave things in the fridge"

  2. #2
    Join Date
    May 2006
    Posts
    196
    Rep Power
    0

    Default

    Who better to answer this than SUN themselves.
    Link Here
    I went to a bookstore and asked the saleswoman, "Where's the self-help section?" She said if she told me, it would defeat the purpose.
    Windows 7 Pro, Gigabyte MA785GM-US2H, AMD Athlon II 245, OCZ Reaper 2X2GB DDR2 1066, WD 500GB+WD 200GB, Cosair 400W, 23" eMachine 1080p Monitor

  3. #3
    Join Date
    Jul 2006
    Posts
    249
    Rep Power
    0

    Default

    thanks man........

    it works now
    "And what's the real lesson? Don't leave things in the fridge"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •