Rewrite into if-else-if statement
switch(opn)
{case ‘a’:System.out.println(“Platform
independent”);
break
case ‘b’:System.out.println(“Object
Oriented”);
case ‘c’:System.out.println(“Robust and
Secure”);
break;
default: System.out.println(“Wrong
input”);
}
Answers
Answered by
0
Answer:
I also need answer of this question please frnds give me a correct answer
Answered by
1
Answer:
if(opn=='a'){
System.out.println(“Platform independent”);
}else if(opn == 'b'){
System.out.println(“Object Oriented”);
}else if(opn == 'c'){
System.out.println(“Robust and Secure”);
}else{
System.out.println(“Wrong input”);
}
Similar questions