第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時(shí)綁定郵箱和手機(jī)立即綁定

這是我寫的,大家可以看看,求大神順便可以幫忙指出我的問題,

package?com.imooc;
import?java.util.Scanner;

public?class?Initail?{
	public?void?uo(){
	?????class?Initai{
				public?void?ip(){
					System.out.println("方法內(nèi)部類執(zhí)行了");
				}
				
	
		}
	?????Initai?hai=new?Initai();
			hai.ip();
	
	}
	public?static?void?main(String[]?args)?{
		//?TODO?Auto-generated?method?stub
Scanner?input=new?Scanner(System.in)?;
Scanner?impor=new?Scanner(System.in);
Scanner?ips=new?Scanner(System.in);
System.out.println("******歡迎使用噠噠租車系統(tǒng)********");
System.out.println("?輸入?1?是進(jìn)入噠噠系統(tǒng)選車");
System.out.println("?輸入?0?是退出");
System.out.println("*****請輸入密碼****");
int?score=input.nextInt();
switch(score){	
case?0:
	System.out.println("再見");
	break;	
default:
	System.out.println("輸入錯(cuò)誤程序結(jié)束");
	break;
case?1:
	System.out.println("輸入正確");
System.out.println("請選擇車輛號碼");
System.out.println("貨車請輸入1??200元一天");
System.out.println("客車請輸入2??300元一天");
System.out.println("皮卡請輸入3??400元一天");
System.out.println();
System.out.println("想查看詳細(xì)信息請輸入以上的代碼編號");
System.out.println("****請正確輸入****");
Initail?iq=new?Initail();
iq.uo();
int?scores=impor.nextInt();
if(scores==3){
	bus2?hello=new?name3();
	hello.show2();
	hello.show3();
}else?if(scores==1){
	bus2?hello2=new?name1();
????hello2.show2();
	hello2.show3();
}else?if(scores==2){
	bus2?hello3=new?name2();
	hello3.show2();
	hello3.show3();
}else{
	System.out.println("輸入錯(cuò)誤程序結(jié)束");
	break;
}
System.out.println();
System.out.println("請問想要購買多少天?");
int?asc=ips.nextInt();
if(scores==1){
bus2?hi=new?name1();
hi.show(asc);
break;
}else?if(scores==2){
	bus2?hi=new?name2();
	hi.show(asc);
	System.out.println();
	break;
}else?if(scores==3){
	bus2?hi=new?name3();
	hi.show(asc);
	break;
}else{
	System.out.println("輸入錯(cuò)誤程序結(jié)束");?
	break;
}
	}
System.out.println("程序結(jié)束");
	}
}
//
package?com.imooc;//皮卡

public?class?name3?extends?bus2??{

	@Override
	public?void?show2()?{
		//?TODO?Auto-generated?method?stub
System.out.println("皮卡能載貨5噸載人4個(gè)");
	}

	@Override
	public?void?show3()?{
		//?TODO?Auto-generated?method?stub
System.out.println("皮卡既有載人的能力又有載貨的能力");
	}

	
	public?void?show(double?as)?{
		//?TODO?Auto-generated?method?stub
		?int?si=400;
		System.out.println("一共是"+si*as+"人民幣");
	}

}
package?com.imooc;//客車

public?class?name2?extends?bus2{

	@Override
	public?void?show2()?{
		//?TODO?Auto-generated?method?stub
?System.out.println("客車能載人40人");
	}

	@Override
	public?void?show3()?{
		//?TODO?Auto-generated?method?stub
System.out.println("客車具有載人的能力");
	}

	
	public?void?show(double?as)?{
		//?TODO?Auto-generated?method?stub
		?int?sh=300;
		System.out.println("一共是"+sh*as+"人民幣");
	}

}
package?com.imooc;//這個(gè)是貨車

public?class?name1?extends?bus2?{

	@Override
	public?void?show2()?{
		//?TODO?Auto-generated?method?stub
??System.out.println("貨車載貨10噸");
	}

	@Override
	public?void?show3()?{
		//?TODO?Auto-generated?method?stub
System.out.println("沒有載人的能力");

	}
	
	public?void?show(double?as)?{
		//?TODO?Auto-generated?method?stub
		?int?poss=200;
		System.out.println("一共是"+poss*as+"人民幣");
	
	}

}
package?com.imooc;

public?abstract?class?bus2?{
public?Object?show;
public?abstract?void?show2();//汽車的類型
public?abstract?void?show3();//載客量或者拉貨量
public?void?show(double?asc)?{
	//?TODO?Auto-generated?method?stub
	
}
}


正在回答

2 回答

你這個(gè)是有報(bào)錯(cuò)還是怎樣啊

0 回復(fù) 有任何疑惑可以回復(fù)我~

太長了,自己調(diào)試.不要一有不會的就問.

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

這是我寫的,大家可以看看,求大神順便可以幫忙指出我的問題,

我要回答 關(guān)注問題
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號