✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
public class SomeClass {
public static void main (String [] args) {
SomeClass t = new SomeClass ();
____
}
private int check (String x, int n) {
if (n = = 0) return n;
else if (n = = 1) {
if (x! = null) return 5;
} Else if (n = = 2 && x! = Null) {
if (x.equals ( "YES")) return 3;
else if (x.equals ( "NO")) return 4;
}
return -1;
}
}
Якщо замість знаків підкреслення помістити код виклику методу check, то яка з пропозицій буде вірним?
(Java)