/**
* Created by Alpha on Jan/21/15.
*/
public class StringSwitch {
public static void main(String[] args) {
String mode = args[0];
switch (mode) {
case "ACTIVE":
System.out.println("Application is running on Active mode");
break;
case "PASSIVE":
System.out.println("Application is running on Passive mode");
break;
case "SAFE":
System.out.println("Application is running on Safe mode");
}
}
}
public class StringSwitch {
public StringSwitch() {
}
public static void main(String[] args) {
String mode = args[0];
byte var3 = -1;
switch(mode.hashCode()) {
case -74056953:
if(mode.equals("PASSIVE")) {
var3 = 1;
}
break;
case 2537357:
if(mode.equals("SAFE")) {
var3 = 2;
}
break;
case 1925346054:
if(mode.equals("ACTIVE")) {
var3 = 0;
}
}
switch(var3) {
case 0:
System.out.println("Application is running on Active mode");
break;
case 1:
System.out.println("Application is running on Passive mode");
break;
case 2:
System.out.println("Application is running on Safe mode");
}
}
}