Computer Science, asked by myasser96333, 9 months ago

Assume char x='A', what changes can you make to the below switch cases to output "abc"? Do not update the System.out.print.
char x='A';
switche(x){
case 'A':System.out.print ("a");
case 'B':System.out.print ("b");
case 'C':System.out.print ("c");
case 'D':System.out.print ("d");
default:System.Out.print("e");

Answers

Answered by Harshit134679
0

Answer:

I don't know this answer soryyyyyyyyyy

Answered by anishasa
0

Add break;

After

case 'C': System.out.print("c");

Similar questions