Identify and correct the errors in the following program:
1 public class Test {
2 public static method1(int n, m) {
3 n += m;
4 method2(3.4);
5 }
6
7 public static int method2(int n) {
8 if (n > 0) return 1;
9 else if (n == 0) return 0;
10 else if (n<0) return –1;
11 }
12 }
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.