package new1;
public class test {
public static void main(String[] args) {
// TODO Auto-generated method stub
int a=1;
switch (a=1){
case 1:
System.out.println("请您选择:1代表客车,2代表货车,3代表皮卡");
default:
System.out.println("谢谢惠顾");
int b=1;
switch (b=1){
case 1:
System.out.println("奥迪A4"+"黄金龙客车"+"请您选择几人乘车");
car1 Car1=new car1();
Car1.passenger();
case 2:
System.out.println("van"+"truck"+"请您选择载货量");
car2 Car2=new car2();
Car2.cargo();
case 3:
System.out.println("pickup");
default:
System.out.println();
}
}
}
}
问下这样行吗
玄鉴
相关分类