returning multiple variables from java method

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nanfh
    New Member
    • Sep 2012
    • 1

    returning multiple variables from java method

    Code:
    public int getCellColourIndex(int row, int col) {
        return ???;


    the thing is here i have to return (int)

    help please urgent
    Last edited by Rabbit; Sep 22 '12, 06:25 AM. Reason: Please use code tags when posting code.
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    Please use code tags when posting code.

    I have no idea what you're trying to do. Your title is different from what you describe in your thread so I have no idea what you're actually wanting to do. If you just want to return an integer, then do that. This returns the integer 10. return 10;

    Comment

    Working...