logo

Crowdly

Browser

Add to Chrome

Є наступний код: public class SomeClass { public static void main (String...

✅ 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)

More questions like this

Want instant access to all verified answers on moodle.chnu.edu.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome