GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing syntaxdb.com — Switch Case in Java - SyntaxDB - Java Syntax Reference
LanguageVersion: SE 8Categories
Control FlowSwitch Case in JavaA switch case is used test variable equality for a list of values, where each value is a case. When the variable is equal to one of the cases, the statements following the case are executed. SyntaxNotesA break statement ends the switch case. The optional default case is for when the variable does not equal any of the cases. The variable used in a switch statement can only be a short, byte, int, char, or the String class (Java 7 and up). The values for each case must be the same data type as the variable type. Example
|
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |