java switch case string

Sale Price:$333.00 Original Price:$999.00
sale

String argument = ... switch (MyEnum.valueOf (argument)) { case VALUE1: case VALUE2: The important thing is that VALUE1 is static. You could have your own myValueOf () and it would still work. Be careful with valueOf () which throw NPE and IllegalArgumentException if argument is not valid. game nokia java

Quantity:
Add To Cart