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

正文內(nèi)容

java實(shí)驗(yàn)報(bào)告電子稿匯編-文庫吧在線文庫

2025-11-06 13:47上一頁面

下一頁面
  

【正文】 記錄操作過程。(“Hello!”,20,20)。class StringTest2{ public static void main(String args[]){String s1 = “This is the second string.”。boolean result132 = s1 == s3。(“s1 == s3= ” +result132)。算法二:將原串str反轉(zhuǎn)成temp串,再比較兩串,如果相等則是回文字符串。public class HelloApplet extends Applet { int height,width。//char grade。amp。for(int i = 0。int[] prime = new int[length]。int arr[][]=new int[4][]。jfor(i=3。}} } ②public class Shuzu { public static void main(String args[]){ int num[][]=new int[4][]。else{k。()。jif(mat[row][j]mat[row][max])//mat[row][max]為該行最大值max = j。elserow++。()。(a)。} }四、實(shí)驗(yàn)結(jié)果與分析(程序運(yùn)行結(jié)果及其分析)(1)(2)(3)(4)(5)(6)(7)(8)(9)五、實(shí)驗(yàn)體會(huì)(遇到問題及解決辦法,編程后的心得體會(huì))在這次實(shí)驗(yàn)中,我知道了eclipse和jdk運(yùn)行程序的區(qū)別,jdk比較麻煩一些,需要配置變量。試著去掉Man類的public修飾,看看會(huì)發(fā)生什么情況?(2)設(shè)計(jì)復(fù)數(shù)類,成員變量包括實(shí)部和虛部,成員方法包括實(shí)現(xiàn)復(fù)數(shù)加法、減法、字符串描述、比較是否相等等操作。根據(jù)上述要求,請(qǐng)完成以下Java類的設(shè)計(jì): 1)設(shè)計(jì)一個(gè)基類Student描述學(xué)生的共同特征。在主測(cè)試類Test中測(cè)試各類雇員工資計(jì)算結(jié)果。public Employee(String first,String last){firstName=first。分別定義飛機(jī)類和鳥類,實(shí)現(xiàn)CanFly接口。//建立輸入流緩沖區(qū) (”請(qǐng)輸入除數(shù):“)。} //捕獲與I/O有關(guān)的異常(空白處補(bǔ)全捕獲語句)//捕獲數(shù)值轉(zhuǎn)化時(shí)的異常,如不能將字符轉(zhuǎn)化成數(shù)值//捕獲除數(shù)為0的異常} } 編譯并運(yùn)行,當(dāng)產(chǎn)生輸入輸出異常時(shí)顯示異常信息;當(dāng)輸入除數(shù)為0時(shí),出現(xiàn)算術(shù)異常,提示除數(shù)為0,并要求重新輸入;當(dāng)輸入的不是整數(shù)時(shí),如將30輸成了3o,出現(xiàn)數(shù)值格式異常,提示輸入整數(shù)。//導(dǎo)入包public class China { public static void main(String[] args){Man lihua = new Man()。} public double getReal(){return real。} public Complex jian(Complex c1,Complex c2){Complex C=new Complex(,)。amp。((c1,c2))。} public double jian(){return ij。(”相乘=“+())。} public void chaxun(double balance,double cunkuan){(”存款為:“+cunkuan)。(10000)。} public void set(float chinese,float math,float Enghish){average=(chinese+math+Enghish)/3。if(average=80)(”研究生生成績(jī)合格“)。Graduate c2=new Graduate(”小紅 “,18)。//定義抽象類,里面不能寫方法public abstract double area()。s=(a+b+c)/2。private String lastName。public Boss(String first, String last, double salary){ super(first, last)。 = sale。}public String earnings(){return(number*price+”“)。(”張三月工資:“+())。double r。public abstract double NewVolume()。} public double NewVolum(){return *pi*r*pi*r*height。} public class Plane implements CanFly{//使用接口 Override public void fly(){// TODO Autogenerated method stub(”飛機(jī)借助螺旋槳飛上天空“)。public class Ex1 { public static void main(String args[ ]){ try{ BufferedReader strin=new BufferedReader(new InputStreamReader())。(”商為:“+c)。public class Div { public static void main(String args[])throws MyException{try{BufferedReader in = new BufferedReader(new InputStreamReader())。}catch(ArithmeticException e1){(”商結(jié)果:Infinity“+e1)。else return(a/b)。(6)調(diào)試程序要記錄調(diào)試過程中出現(xiàn)的問題及解決辦法;(7)編寫程序要規(guī)范、正確,上機(jī)調(diào)試過程和結(jié)果要有記錄,不斷積累編程及調(diào)試經(jīng)驗(yàn);(8)做完實(shí)驗(yàn)后給出本實(shí)驗(yàn)的實(shí)驗(yàn)報(bào)告。import .*。設(shè)計(jì)如圖所示圖形界面,顯示n個(gè)裁判的評(píng)分,根據(jù)制定規(guī)則計(jì)算出最后得分。而這次實(shí)驗(yàn)也讓我看到了現(xiàn)在學(xué)習(xí)的一個(gè)很大弱點(diǎn)就是實(shí)踐的實(shí)踐往往很少。}finally{(”程序結(jié)束!“)。(”請(qǐng)輸入除數(shù):“)。} } }(11)(1)MyException類: package exp2_11。(”請(qǐng)輸入被除數(shù):“)。makeFly(p)。(”圓柱體積:“+())。} } public class Yuanzhui extends Yuanzhu implements Volume { public Yuanzhui(String shape, double r, double height, double pi){super(shape, r, height, pi)。=height。(”王五月工資:“+())。 = time。double price。double sale。} public String getLastName(){ return lastName。()。=b。(())。(65,75,60)。if(average=60)(”本科生成績(jī)合格“)。float math,Enghish。} } public class UseAccount {//測(cè)試public static void main(String[] args){BankAccount c1=new BankAccount(40000,40000)。public BankAccount(double cunkuan,double balance)//寫方法{=balance。} } public class PackageDemo {//測(cè)試public static void main(String[] args){Calculate c1=new Calculate(8,4)。} public Calculate(int i,int j,int t){=i。//創(chuàng)建類,調(diào)用類里面的方法Complex c2=new Complex(5,2)。} public boolean bijiao(Complex c1,Complex c2){return(==amp。} public Complex add(Complex c1,Complex c2)//寫方法{Complex C=new Complex(+,+)。//賦值=image。)(1)package 。cl=()。(10)異常的捕獲:計(jì)算兩數(shù)相除并輸出結(jié)果。} public String toString(){ return firstName+lastName。在一個(gè)實(shí)際的工資系統(tǒng)中,各種Employee對(duì)象的引用可以通過一個(gè)Employee引用數(shù)組來實(shí)現(xiàn)。(6)設(shè)計(jì)三角形類,繼承圖形抽象類,計(jì)算三角形面積和周長(zhǎng)。(4)試編碼實(shí)現(xiàn)簡(jiǎn)單的銀行業(yè)務(wù):處理簡(jiǎn)單帳戶存取款、查詢。二、實(shí)驗(yàn)儀器和設(shè)備奔騰以上計(jì)算機(jī),Windows 操作系統(tǒng)。(”使用類庫中的Arrays類,按字典序排列數(shù)組b:“)。} } }(9)import .*。public class HuiWenTest { public static void main(String[] args){// TODO Autogenerated method stub(“請(qǐng)輸入一個(gè)字符串”)。amp。//記錄當(dāng)前行最大值的列下標(biāo)while(!find amp。} } }(6)public class test { public static void main(String[] args){// TODO Autogenerated method stubint[][] mat = {{11,12,13},{4,5,6},{7,8,9}}。m(“ ”)。ifor(j=0。ifor(j=3。}if(j == i){prime[step] = i。 i!= 0)()。score(“C”)。if(score=90amp。(“Hello!”, 20, 20)。)(1)主方法傳遞參數(shù)“Hello world”字符串,并輸出public class Hello { public Hello(){(“HelloWorld!”)。(“s1 == s5= ” +result152)。boolean result152 = s1 == s5。String s5 = s1。(5)輸出下列數(shù)字形式,要求用二維數(shù)組完成。記錄操作過程。實(shí)驗(yàn)報(bào)告批改說明實(shí)驗(yàn)報(bào)告的批改要及時(shí)、認(rèn)真、仔細(xì),一律用紅色筆批改。//將時(shí)鐘線程停止 } } SuppressWarnings(”serial)class MultiThreadApplet extends Applet implements Runnable { public void run(){// TODO Autogenerated method stub } }四、實(shí)驗(yàn)結(jié)果與分析 實(shí)驗(yàn)1:Array1:13579 array2:2468 合并后 result:123456789 實(shí)驗(yàn)2:The content of text is : abstract assert class The result is : yes 實(shí)驗(yàn)3: the sleep time is:1 the id of thread is:9 the sleep time is:1 the id of thread is:9 the sleep time is:1 the id of thread is:10 the sleep time is:4 the id of thread is:9 the sleep time is:1 實(shí)驗(yàn)4: 左側(cè)為時(shí)間第二篇:JAVA實(shí)驗(yàn)報(bào)告學(xué) 生 實(shí) 驗(yàn) 報(bào) 告 冊(cè)(理工類)課程名稱:面向?qū)ο蟪绦蛟O(shè)計(jì) 專業(yè)班級(jí):16計(jì)算機(jī)科學(xué)與技術(shù)(專轉(zhuǎn)本)學(xué)生學(xué)號(hào): 1613203022 學(xué)生姓名: 張義丹所屬院部: 計(jì)算機(jī)工程 指導(dǎo)教師: 劉 晶 16 ——20 17 學(xué)年 第 2 學(xué)期金陵科技學(xué)院教務(wù)處制 實(shí)驗(yàn)報(bào)告書寫要求實(shí)驗(yàn)報(bào)告上交電子稿,標(biāo)題采用四號(hào)黑體,正文采用小四號(hào)宋體,單倍行距。public void init()//用于初始化的標(biāo)準(zhǔn)程序 {font = new Font(”TimesRoman“, , 48)。} catch(InterruptedException e){ // TODO Autogenerated catch block break。DelayPrintThread thread2 = new DelayPrintThread()。while(null!=(temp = ())){ content += temp。File file = new File(”D:/“)。import .*。()。(c1,0,c,0,)。BufferedWriter f=new BufferedWriter(newFileWriter(”d:“))。(3)編寫在構(gòu)造方法中產(chǎn)生一個(gè)15之間的隨機(jī)數(shù)的繼承Thread類的線程類DelayPrintThread,使得線程體每休眠此隨機(jī)數(shù)時(shí)間就打印輸出線程號(hào)和休眠時(shí)間;,在main()方法中創(chuàng)建兩個(gè)線程,并應(yīng)用sleep()控制主應(yīng)用程序延遲一段時(shí)間。(x0 + x, y0 + y, 1, 1)。for(int i = 0。(this)。} if(()== radiob_color[2])c = new Color(0, 0, 255)。(radiob_color[i])。String colorstr[] = { ”紅“, ”綠“, ”藍(lán)“ }。SuppressWarnings(”serial“)public class Ex4 extends JFrame implements ActionListener
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1