public static int sum(int x, int y) { return x + y; } public static int sum(int x, int y, int z) { return x + y + z; }