Results 1 to 3 of 3
  1. #1
    turtlish is offline Member
    Join Date
    Dec 2011
    Posts
    15
    Rep Power
    0

    Default Multiple use of get/ return

    Hello!I would like to ask if we can use the "get" command for more than one variables.I want in one command to return 3 different numbers.Thanks

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,453
    Rep Power
    25

    Default Re: Multiple use of get/ return

    What is the "get" command?
    Are you talking about a class's method?
    A method can only return one value. That value can be an array or object that contains many values.

  3. #3
    turtlish is offline Member
    Join Date
    Dec 2011
    Posts
    15
    Rep Power
    0

    Default Re: Multiple use of get/ return

    Yes that's what I meant..Oh ok i understand! Thank you very much!

Similar Threads

  1. Return multiple values from array lookup?
    By tbhawk in forum New To Java
    Replies: 2
    Last Post: 07-31-2011, 03:56 PM
  2. Replies: 2
    Last Post: 06-10-2011, 07:15 AM
  3. return multiple values from class methods
    By exdox77 in forum New To Java
    Replies: 0
    Last Post: 01-29-2011, 08:08 PM
  4. java method with multiple return values
    By Ms.Ranjan in forum New To Java
    Replies: 1
    Last Post: 06-18-2009, 06:08 PM
  5. [SOLVED] Multiple return values
    By Manfizy in forum New To Java
    Replies: 17
    Last Post: 05-25-2009, 12:07 PM

Posting Permissions

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