Results 1 to 4 of 4

Thread: Question.

  1. #1
    Proshitness is offline Member
    Join Date
    Oct 2011
    Posts
    28
    Rep Power
    0

    Default Question.

    First, i didn't know where to ask this, so i posted the thread here , because i use Eclipse.
    So i wanted to know is there a way that i can use the variable's that have been set inside my main method in other methods?
    thanks.

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,016
    Rep Power
    10

    Default Re: Question.

    Sure, either use a class variable or pass them as parameters.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Proshitness is offline Member
    Join Date
    Oct 2011
    Posts
    28
    Rep Power
    0

    Default Re: Question.

    can you give an example? im kind of new to java...

  4. #4
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,016
    Rep Power
    10

Similar Threads

  1. question
    By er_murli4u in forum New To Java
    Replies: 1
    Last Post: 02-20-2011, 07:07 PM
  2. Question concerning question marks and colons
    By jim01 in forum New To Java
    Replies: 17
    Last Post: 01-14-2011, 01:05 AM
  3. Question mark colon operator question
    By orchid in forum Advanced Java
    Replies: 9
    Last Post: 12-19-2010, 09:49 AM
  4. Question
    By vittoire in forum New To Java
    Replies: 3
    Last Post: 02-02-2010, 01:54 PM
  5. Question!
    By anjogomez in forum Java Applets
    Replies: 2
    Last Post: 02-21-2009, 04:24 AM

Posting Permissions

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