public class text{
public static void main(String args[] ) {
String str = "Hello";
switch(str){
case"Hello":{
System.out.println("Hello");
break;
}
case"hello":{
System.out.println("hello");
break;
}
default:{
System.out.print("None");
}
}
}
}
`````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````
switch 不能识别判断语句,只能识别内容