how to make a java program return multiple values from the main method code example
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;
int[] ans = new int[2];
ans[0] = a + b;
ans[1] = a - b;
return ans;