The switch operator java

Pubblicato il: 17 aprile 2017
sul canale di: JavaLight
28
1

Unlike the if-then and if-then-else statements, the switch statement applies to a known number of possible situations. You can use simple types of byte, short, char, int. You can also use Enum and String (starting with JDK7), and special classes that are wrapper for primitive types: Character, Byte, Short, Integer.

Duplicating case values ​​is not allowed. The type of each value must be compatible with the type of expression.


In questa pagina del sito puoi guardare il video online The switch operator java della durata di ore minuti seconda in buona qualità , che l'utente ha caricato JavaLight 17 aprile 2017, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 28 volte e gli è piaciuto 1 spettatori. Buona visione!