Java Method Return Multiple Values Code Example May 30, 2007 Post a Comment Example: how to return two values from a function in java int[] ans = new int[2]; ans[0] = a + b; ans[1] = a - b; return ans; Share Post a Comment for "Java Method Return Multiple Values Code Example"
Post a Comment for "Java Method Return Multiple Values Code Example"