freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

word版可編輯-java語言程序設(shè)計(jì)期中考試試題精心整理-資料下載頁

2025-03-24 05:09本頁面
  

【正文】 arge[])throws IOException { InputStreamReader ir。 BufferedReader in。 ir=new InputStreamReader( )。 in=new BufferedReader(ir)。 (輸入年份是:)。 String s= 。 int year=(s)。 if (year %4 == 0 amp。amp。 year % 100!= 0 || year%400==0) { (+year+年是閏年.)。 } { (+year+年不是閏年)。 } }}  下面程序?qū)?shù)組中每個(gè)元素賦值,使程序能正常運(yùn)行. import .*。public class ArrayTest{ public static void main(String args[]) { int i。 int a[] = new int[5]。 for(i=0。i5。i++) a[i]=i。 for( 。i=0。i) (a[+i+]=+a[i])。 }}下列程序的功能是:輸入一個(gè)姓名,程序運(yùn)行后,輸出“姓名Weleyou!”.例如,輸入“張三”, 則輸出“張三 Weleyou!”.請?jiān)谙旅鏅M線處填入正確的方法名,使程序可以正確運(yùn)行. import .*。import .*。import .*。 public class welenYou{ public static void main(String args[]) { FrameInOut f=new FrameInOut()。 ( )。 }} class FrameInOut extends Frame implements ActionListener { Label prompt。 TextField input,output。 Button btnn。 public FrameInOut() { prompt=new Label(Please input your name)。 input=new TextField(10)。 output=new TextField(25)。 btnn=new Button(Exit)。 (new FlowLayout())。 add(prompt)。 add(input)。 add(output)。 add(btnn)。 ( )。 (this)。 setSize(300,200)。 } public void actionPerformed(ActionEvent e) { if(()==input) (()+Wele you!)。 else { dispose()。 (0)。 } } }下列程序完成的功能是: import .*。public class Class1{ public static void main(String args[ ]) { int i,Max,Min。 int a[]= {12,67,8,98,23,56,124,55,99,100}。 Max = Min = a[0]。 for (i=1。i。i++) { if (a[i]Min) Min = a[i]。 if (a[i]Max) Max = a[i]。 } (Max+ +Min)。 ()。 }}下面程序的運(yùn)行結(jié)果是: public class example{ public static void main(String args[]) { int count=0。 for(int i=0。i3。i++) resume: for(int j=0。j4。j++) for(int k=0。k5。k++) { ++count。 (\ti=+i)。 (\tj=+j)。 (\tk=+k)。 (\tcount=+count)。 if((i==1)amp。amp。(j==2)amp。amp。(k==3)) break resume。 } (\tcount=+count)。 }
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1