下列选项中关于变量x的定义中,哪两项可使以下的switch语句编译通过。switch(x){case 100:System.out.println("One hundred");break;case 200:System.out.println("Two hundred");break;case 300:System.out.println("Three hundred");break;default:System.out.println("default");}
A. double x=100;
B. char x=100;
C. String x="100";
D. int x=100;