User Profile

Collapse

Profile Sidebar

Collapse
java2986
java2986
Last Activity: Feb 17 '09, 01:18 PM
Joined: Feb 16 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • java2986
    replied to How to return 2 values
    in Java
    ..this one is fix

    Sorry i modified the the method but din't do it to the main

    Code:
    public static Object[] wharever() {
    Object object[] = new Object[3];
    int x = 0;
    String y = "1";
    Boolean z=true;
    object[0] = x;
    object[1] = y;
    object[2]=z;
    return object;
    }
    
    public static void main(String... args) {
    Object object[] = wharever();
    ...
    See more | Go to post

    Leave a comment:


  • java2986
    replied to How to return 2 values
    in Java
    hi i'm new

    i use something like this:
    [code=java]
    public static Object[] wharever() {
    Object object[] = new Object[3];
    int x = 0;
    String y = "0";
    Boolean z=true;
    object[0] = x;
    object[1] = y;
    object[2]=z;
    return object;
    }

    public static void main(String... args)...
    See more | Go to post
    Last edited by Nepomuk; Feb 17 '09, 06:19 PM. Reason: Please use [CODE] tags

    Leave a comment:

No activity results to display
Show More
Working...