Java Return Multiple Values From Method Code Example Get link Facebook X Pinterest Email Other Apps February 23, 2018 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; Get link Facebook X Pinterest Email Other Apps Comments
Comments
Post a Comment