cara memecahkan case switch di java

// break reserved word is used to break out of a switch case
char letter = 'a';
int aCount = 0, bCount = 0, other = 0;

switch(letter) {
case 'a':
	aCount++;
    break;
case 'b':
	bCount++;
    break;
default:
	other++;
}
Wissam