Can I use the Switch statement with Logical Operators?

0 Nimrod Mwakitawa · April 30, 2015
Ive tried , it always says error. Is it possible?

Post a Reply

Replies

Oldest  Newest  Rating
0 Dol Lod · 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. 
  • 1

Java / Android Development

107,242 followers
About

Very popular language used to create desktop applications, website applets, and Android apps.

Links
Moderators
Bucky Roberts Administrator