logo

Crowdly

Browser

Add to Chrome

Що буде виведено на екран в результаті виконання наступного коду: public clas...

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

t.say (1);

}

private void say (int digit) {

switch (digit) {

case 1:

System.out.print ( "1");

break;

case 2:

System.out.print ( "2");

case 3:

System.out.print ( "3");

default:

System.out.print ( "Unknown");

}

}

}

(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