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

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

求助代碼實(shí)現(xiàn)不了其他功能,想用接口實(shí)現(xiàn)以下四個(gè)功能,求大神幫忙改改

求助代碼實(shí)現(xiàn)不了其他功能,想用接口實(shí)現(xiàn)以下四個(gè)功能,求大神幫忙改改

cute倩影O_o 2016-10-18 13:45:14
?import?java.util.Arrays;import?java.util.Calendar;import?java.util.Date;public?interface?Iqianqian?{ public?static?void?main?(String[]?args){?Calendar?Q=Calendar.getInstance(); Date?date=Q.getTime(); Long?time=Q.getTimeInMillis();?int?year=Q.get(Calendar.YEAR);?int?month=Q.get(Calendar.MONTH)+1; int?day=Q.get(Calendar.DAY_OF_MONTH); int?hour=Q.get(Calendar.HOUR_OF_DAY); int?minute=Q.get(Calendar.MINUTE);?int?second=Q.get(Calendar.SECOND); System.out.println("您好北京時(shí)間;"?+date); System.out.println("小Q報(bào)時(shí);"+year+"年"+month+"月"+day+"??"+hour+";"+minute+";"+second);????System.out.println("毫秒數(shù);?"+time);}?public?static?void?methodtwo(){ String?Q="?Hello?lan?qian?is?a?good?girl??"; System.out.println("字符串長(zhǎng)度:"?+Q.length()); System.out.println("轉(zhuǎn)換為大寫:"?+Q.toUpperCase());?System.out.println("子串為:"?+Q.substring(6,30)); String?q1=Q.replace("good","beatuiful"); System.out.println("替換為:"?+Q.replace("good","beatuiful")); System.out.println("刪除字符串兩邊多余的空格:"?+Q.trim()); System.out.println("qian的位置:?"?+Q.indexOf("qian"));????String[]?arr=Q.split("?");????System.out.println("把空格拆成數(shù)組?;?"?+Arrays.toString(arr));????byte[]?q2=Q.getBytes();????System.out.print("轉(zhuǎn)換為字節(jié)數(shù)數(shù)組:?");????for(int?i=0;i<q2.length;i++){????System.out.print(q2[i]+?"?");????} } public?static?void?methodthree(){????int[]?Q=new?int?[20]; ?for(int?i=1;i<20;i++)?????{??? ??Q[i]=(int)(Math.random()*100); ?Arrays.sort(Q);?System.out.print(Q[i]+"?");} }????????public??static?void?methodfour(){ ????int?score=110; Integer?englishscore=new?Integer(score); ???String?str="108"; ???int?mathscore=Integer.valueOf(str); ??double?chinesescore=englishscore.doubleValue(); ???int?sum=(int)?(mathscore+score+chinesescore); ???int?averge=(sum/3);????System.out.println("三門課總成績(jī);"+sum);????System.out.println("三門課平均成績(jī);"+averge); }?static?double?doubleValue()?{ //?TODO?Auto-generated?method?stub return?110; }?static?int?valueOf(String?str)?{ //?TODO?Auto-generated?method?stub return?108; } } ? ? ??
查看完整描述

1 回答

  • 1 回答
  • 0 關(guān)注
  • 1364 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號(hào)

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