✅ 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 (2);
}
private void say (int digit) {
switch (digit) {
case 1:
System.out.print ( "ONE");
break;
case 2:
System.out.print ( "TWO");
case 3:
System.out.print ( "THREE");
break;
default:
System.out.print ( "Unknown");
}
}
}
(Java)