Skip to main content
edited body
Source Link

return array of int.. e.g. int[]...

public static int[] my(int a, int b) { int res[] = new int[3];int[4]; int c = a + b; res[0] = c; int d = a * b; res[1] = d; int e = a - b; res[2] = e; int f = a / b; res[3] = f; return res; } 

return array of int.. e.g. int[]...

public static int[] my(int a, int b) { int res[] = new int[3]; int c = a + b; res[0] = c; int d = a * b; res[1] = d; int e = a - b; res[2] = e; int f = a / b; res[3] = f; return res; } 

return array of int.. e.g. int[]...

public static int[] my(int a, int b) { int res[] = new int[4]; int c = a + b; res[0] = c; int d = a * b; res[1] = d; int e = a - b; res[2] = e; int f = a / b; res[3] = f; return res; } 
Source Link
Niraj Patel
  • 2.2k
  • 1
  • 14
  • 19

return array of int.. e.g. int[]...

public static int[] my(int a, int b) { int res[] = new int[3]; int c = a + b; res[0] = c; int d = a * b; res[1] = d; int e = a - b; res[2] = e; int f = a / b; res[3] = f; return res; }