public class Kalra8 { static int x = 7; public static void main(String[] args) { String s = ""; for (int y = 0; y < 3; y++) { x++; switch (x) { case 8: s += "8 "; case 9: s += "9 "; case 10: { s += "10 "; break; } default: s += "d "; case 13: s += "13 "; } } System.out.println(s); } static { x++; } }
static int x = 7;
public static void main(String[] args) {
String s = "";
for (int y = 0; y < 3; y++) {
x++;
switch (x) {
case 8:
s += "8 ";
case 9:
s += "9 ";
case 10: {
s += "10 ";
break;
}
default:
s += "d ";
case 13:
s += "13 ";
System.out.println(s);
static {
OCA(1z0-803_OCA1.7)MockExamPII
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.