According Oracle\'s documentation on Switch, a switch-case structure can work with some numerical primitives like byte, short, char and int (and their wrapper classes), as w