Can I use the Switch statement with Logical Operators?
Post a Reply
|Oldest Newest Rating|
· April 30, 2015
Do you even know what a switch statement is? Please review the definition.
A switch statement is not like LISP. To be more precise, a switch statement is not a whole bunch of conditions thrown in together.
A switch statement looks or a specific value based on what is entered and attempt to match it. A switch instead operates like a whole bunch of ors with one default. The main advantage is that you check in one step instead of several.
Java / Android Development
Very popular language used to create desktop applications, website applets, and Android apps.
|Bucky Roberts Administrator|