public class Tester { public static void main(String[] args) { char code = 'a'; for (int i = 1; i <= 10; i++) { switch (i) { case 5: { System.out.println("match"); } default: { System.out.println("default"); } } } } }
public static void main(String[] args) {
char code = 'a';
for (int i = 1; i <= 10; i++) {
switch (i) {
case 5: {
System.out.println("match");
}
default: {
System.out.println("default");
Oracle Certified Professional Java Programmer
Access: Public Instant Grading
Jobilize.com uses cookies to ensure that you get the best experience. By continuing to use Jobilize.com web-site, you agree to the Terms of Use.