A switch statement is basically a if, elif, elif, elif, elif, else.
Why does a switch statement need a break within it and an else if statement doesnt? What is the difference?
If, else if doesn't require a break.
if (c = 'a'){
System.out.println("");
}
else if (c = 'b'){
System.out.println("");
}
Switch statement requires a break.
switch(c){
case('a'){
System.out.println("");
break;}
case('b'){
System.out.println("");
break;}
}