switch (receiver) {
case 2:
System.out.println ('Van, Toan');
break;
case 3:
System.out.println ('Flowers, Cups');
break;
default:
System.out.println ('Immediately');
break;
}
- Van, Toan
- Flowers, Ly
- Immediately
- There is no answer
Do you like Java programming and want to learn useful knowledge to apply to work? To meet the needs of readers, Network administrators have collected and sent a series of quiz questions about Java programming. Invite your reference.
switch (receiver) {
case 2:
System.out.println ('Van, Toan');
break;
case 3:
System.out.println ('Flowers, Cups');
break;
default:
System.out.println ('Immediately');
break;
}
switch (receiver) {
case 2:
System.out.println ('Van, Toan');
break;
case 3:
System.out.println ('Flowers, Cups');
break;
default:
System.out.println ('Immediately');
break;
}
Flowers, Ly
switch (receiver) {
case 2:
System.out.println ('Van, Toan');
break;
case 3:
System.out.println ('Flowers, Cups');
break;
default:
System.out.println ('Immediately');
break;
}
mausac enum {DEN, LAM, LUC, PAGE};
mausac color;
char * t;
switch (color) {
case 0:
t = 'Mau page';
break;
case 1:
t = 'Mau den';
break;
case 2:
t = 'Mau lam';
break;
case 3:
t = 'Mau luc';
break;
default:
t = 'Not in the list';
break;
}
System.out.println (t);
Quick page
black
enum mausac {DEN = 3, LAM, LUC, PAGE};
mausac color;
char * t;
switch (color) {
case 0:
t = 'Mau page';
break;
case 1:
t = 'Mau den';
break;
case 2:
t = 'Mau lam';
break;
case 3:
t = 'Mau luc';
break;
default:
t = 'Not in the list';
break;
}
System.out.println (t);
int s = 0;
for (int i = 0; i <10; i ++)
s + = i;
System.out.println (s);
int [] mang = new int [10];
int s = 0;
int j = 0;
for (int i: mang) {
i = ++ j;
s + = i;
}
System.out.println ('S =' + s);
All is wrong
int [] mang = new int [10];
int s = 0;
int j = 0;
for (int i: mang) {
i = ++ j;
s + = i;
}
System.out.println ('S =' + s);
S = 45
int [] mang = new int [10];
int s;
int j = 0;
for (int i: mang) {
s = 0;
i = ++ j;
s + = i;
}
System.out.println ('S =' + s);
int i = 0;
due to {
i + = 1;
} while (i == 0);
System.out.println ('i =' + i);