Всем привет! Не могу понять что еще не так( Найдите и исправьте ошибки в следующей программе:
public class MethodTest {
  public static method1(int n, m) {
    n += m;
    method2(3.4);
  }

  public static int method2(int n) {
    if (n > 0) return 1;
    else if (n == 0) return 0;
    else if (n < 0) return −1;
  }
}
Вот мое решение
public class MethodTest {
  public static int method1(int n, int m) {
    n += m;
    method2(3.4);
  }

  public static int method2(double n) {
    if (n > 0)
    return 1;
    else if (n == 0)
    return 0;
    else
    return −1;
  }
}