




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
1、.111JavaJava 24 a= ; b= ; c= ;System.out.println(int)a+,+(int)b+,+(int 34 for( a= ;a=out 35 i= JiechengSystem.out Jiecheng( =if=i*Jiecheng 37 . whilea+=JiechengifSystem.out Jiecheng( if=i*Jiecheng 4 4142434445 46和47.48494;551 和525354 A B ab55) ) ) ) 和56576616263.64; ;65;77172737412755 fora:Color.val
2、uesforb:Color.valuesforc:Color.valuesifSystem.out.println(a+,+b+,System.out 紅 黃 藍(lán) 綠 黑, , , , 881.8283848596 991A: 把 B C:abc=abc D:”abc”.equals(“abc”) 92 E love93 E15;abc949596 = hello;= World;=System.out=System.out.println(str3);=System.out97 . = World!; a=System.outa=System.out98 = Scanner(System.i
3、nSystem.out.println(請輸入年份和月份,輸入一次按一次回車 x= y= a=char= for( System.out.printf(%7cfor( i=0;ia.lengthifSystem.outSystem.out.printf(%4s day; =0, = SetYear( this. SetMonth( .this. = a= =Calendar.getInstancerill.set(year, month =rill.get(Calendar.DAY_OF_WEEK if(month=1|=3|=7|=8|=10|if( 4| 6| 9| =if( if(yea
4、r%4=0&year%100!=0|year =for( ai=;for( ai=String.valueOffor( i=weekDay+day;ia.lengthai=; 99 =Calendar.getInstance= Scanner(System.inSystem.out.println( =System.out.println(. =System.out.println( = =System.out.println(=System.out.println( =System.out.println(= =out.println(+sub+10略10919,編寫程序剔除一個(gè)字符串中的全
5、部非數(shù)字字符,例如,將形如“abc123you”的非數(shù)字字符全部剔除得到字符串“123 = D1,;p=Ppiles= abc123you;m=System.out.println(剔除以后的字符串=m.replaceAll(System.out10921Scanner877696 . = 8776分,英語96分;= scanner.useDelimiter(0123456789+ =while = =System. .println(+sum+101如果準(zhǔn)備按字節(jié)讀取一個(gè)文件的內(nèi)容,應(yīng)當(dāng)使用FileInputStreamFileReader102FileInputStreamreadFile
6、Reader流的read103BufferedReaderBufferedReaderReader子類的對象,來創(chuàng)建一個(gè)104ObjectInputStreamObjectOutputStreamObjectOutputStreamOutputStream的子類創(chuàng)建一個(gè)輸出流。同樣ObjectInputStreamInputStream105106RandomAccessFile = null;. = RandomAccessFile(tom.dat,rwfor( i=0;idata.lengthfor( i=data.lengthSystem. .printf(t%dcatch107java108略1092567/臺(tái)3562/臺(tái)6573/臺(tái) = File(cost
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 外貿(mào)英語聽說試題與聽力材料解析
- 鄉(xiāng)村醫(yī)防協(xié)同應(yīng)急響應(yīng)機(jī)制構(gòu)建
- 合同管理流程及檔案表
- 商業(yè)合作伙伴框架合作協(xié)議
- 2025年人工智能應(yīng)用考研試卷及答案
- 2025年金融市場與衍生品交易的基礎(chǔ)能力考試題及答案
- 2025年旅游管理專業(yè)基礎(chǔ)知識試卷及答案
- 2025年網(wǎng)絡(luò)營銷與電商運(yùn)營考試試卷及答案
- 2025年鋼鐵冶金與材料科學(xué)的綜合能力考試卷及答案
- 2025年甘肅省平?jīng)鋈A亭市策底鎮(zhèn)招聘專業(yè)化管理的村文書筆試備考試題附答案詳解
- 深圳市失業(yè)人員停止領(lǐng)取失業(yè)保險(xiǎn)待遇申請表空表
- 態(tài)度決定一切細(xì)節(jié)決定成敗主題班會(huì)課件
- 蘇科版初中物理知識點(diǎn)總結(jié)(含所有公式,絕對全~~~~)
- 《國際私法》教學(xué)全套課件
- 基建項(xiàng)目建設(shè)綜合管理信息系統(tǒng)建設(shè)方案
- 一年級下冊音樂教案 (簡譜) (演唱)同坐小竹排(7) 湘藝版
- 砂石料加工廠勞務(wù)外包服務(wù)采購項(xiàng)目
- 列車網(wǎng)絡(luò)控制技術(shù)-復(fù)習(xí)打印版
- 福建高考名著《紅樓夢》填空題+答案
- 商標(biāo)法期末復(fù)習(xí)
- 材料力學(xué)計(jì)算試題(庫)完整
評論
0/150
提交評論