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

正文內(nèi)容

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

2024-11-04 13:47 本頁(yè)面


【正文】 。} if(()== radiob_color[2])c = new Color(0, 0, 255)。(c)。()。} public static void main(String[] args){ new Ex4()。} } @SuppressWarnings(”serial“)class ArchimedesCanvas extends Canvas implements ComponentListener, FocusListener, ActionListener { private Color color。private Timer mTimer。public ArchimedesCanvas(Color color){ ()。(color)。(this)。(this)。} public void setColor(Color color){ = color。} public void paint(Graphics g){ int x0 = ()/ 2。int y0 = ()/ 2。(color)。(x0, 0, x0, y0 * 2)。(0, y0, x0 * 2, y0)。for(int i = 0。i 4000。i++){ double angle = i * / 512。double radius = * angle。int x =(int)(radius * angle * (angle))。int y =(int)(radius * angle * (angle))。mTimer = new Timer(1000, this)。()。(x0 + x, y0 + y, 1, 1)。} } public void ponentMoved(ComponentEvent e){} public void ponentHidden(ComponentEvent e){} public void ponentResized(ComponentEvent e){ ()。} public void ponentShown(ComponentEvent e){} public void focusGained(FocusEvent arg0){ ()。} public void focusLost(FocusEvent arg0){ ()。} public void actionPerformed(FocusEvent arg0){} public void actionPerformed(ActionEvent e){} }四、實(shí)驗(yàn)結(jié)果與分析 : Java高級(jí)編程實(shí)驗(yàn)學(xué)時(shí): 6 同組學(xué)生姓名:————實(shí)驗(yàn)地點(diǎn): 實(shí)驗(yàn)日期:實(shí)驗(yàn)成績(jī): 批改教師:批改時(shí)間:一、實(shí)驗(yàn)?zāi)康暮鸵螅?)了解文件的概念和文件對(duì)象的創(chuàng)建方法;(2)掌握使用文件輸入輸出流讀寫文件的方法;(3)了解線程的基本概念和多線程程序設(shè)計(jì)的基本方法;(4)掌握數(shù)據(jù)庫(kù)連接的方法;(5)創(chuàng)建SQL查詢并更新數(shù)據(jù)庫(kù)中的信息;(6)調(diào)試程序要記錄調(diào)試過(guò)程中出現(xiàn)的問(wèn)題及解決辦法;(7)編寫程序要規(guī)范、正確,上機(jī)調(diào)試過(guò)程和結(jié)果要有記錄,不斷積累編程及調(diào)試經(jīng)驗(yàn);(8)做完實(shí)驗(yàn)后給出本實(shí)驗(yàn)的實(shí)驗(yàn)報(bào)告。二、實(shí)驗(yàn)儀器和設(shè)備奔騰以上計(jì)算機(jī),Windows 操作系統(tǒng),Access數(shù)據(jù)庫(kù)。三、實(shí)驗(yàn)過(guò)程(1)使用文件字節(jié)輸入/輸出流,合并兩個(gè)指定文件;當(dāng)文件中的數(shù)據(jù)已排序時(shí),合并后的數(shù)據(jù)也要求是已排序的。(2)將Java的關(guān)鍵字保存在一個(gè)文本文件中,判斷一個(gè)字符串是否為Java的關(guān)鍵字。(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í)間。(4)編寫繼承Runnable接口的Applet多線程小程序類MultiThreadApplet,編寫繼承該類的Applet小程序類Clock,在Clock中重新構(gòu)造父類的run()方法,實(shí)現(xiàn)數(shù)字時(shí)鐘的功能,要求不斷刷新顯示時(shí)、分、秒。要求:(1)注意選用適當(dāng)?shù)奈募鬟M(jìn)行文件讀寫;(2)學(xué)會(huì)兩種創(chuàng)建線程的方法,并比較使用場(chǎng)合;(3)養(yǎng)成良好的編程習(xí)慣,嚴(yán)格按照命名規(guī)則為包、類及類成員命名,將每個(gè)程序打包,;(4)學(xué)會(huì)查閱Java API文檔,如查找常用工具類。程序清單:(建議程序中適當(dāng)添加注釋信息,增強(qiáng)可讀性;較長(zhǎng)程序可分欄書寫,保證報(bào)告排版整潔美觀。)(實(shí)驗(yàn)四程序清單續(xù)1)實(shí)驗(yàn)1: package test4。import .*。publicclass Ex1{ public static void main(String[]args)throws IOException{BufferedReader f1=new BufferedReader(newFileReader(”d:“))。BufferedReader f2=new BufferedReader(newFileReader(”d:“))。BufferedWriter f=new BufferedWriter(newFileWriter(”d:“))。String s1=()。String s2=()。(s1)。(s2)。char[]c1=()。char[]c2=()。char[]c=new char[+]。(c1,0,c,0,)。(c2,0,c,)。(c)。Sort(c)。(c)。()。()。()。()。} public static void Sort(char[]values){//冒泡倒序排序法chartemp。for(int i=0。ifor(int j=0。jif(values[j]values[j+1]){temp=values[j]。values[j]=values[j+1]。values[j+1]=temp。}}} } } 實(shí)驗(yàn)2: package test4。import .*。import 。import 。import 。public class Ex2 { public static void main(String[] args)throws IOException {boolean isHotKey = doCheck(”class“)。if(isHotKey){(”yes“)。} else {(”no“)。} } private static boolean doCheck(String input)throws IOException { boolean isHotKey = false。File file = new File(”D:/“)。//寫入關(guān)鍵字FileWriter fout=new FileWriter(file)。(”abstract assert class“)。()。String content = ”“。FileReader fr = new FileReader(file)。BufferedReader br = new BufferedReader(fr)。String temp。while(null!=(temp = ())){ content += temp。} (”The content of text is :“)。(content)。(”The result is :“)。isHotKey = (input)。//檢查keyList中是否包含input返回boolean類型數(shù)值 return isHotKey。} }(實(shí)驗(yàn)四程序清單續(xù)2)實(shí)驗(yàn)3: package test4。public class Ex3 { public static void main(String args[])throws InterruptedException {DelayPrintThread thread1 = new DelayPrintThread()。DelayPrintThread thread2 = new DelayPrintThread()。()。()。} } class DelayPrintThread extends Thread { int sleepTime。public DelayPrintThread(){sleepTime = 1 +(int)(()* 5)。// 產(chǎn)生1~5之間的隨機(jī)數(shù)} public void run(){ while(true){ try { (sleepTime)。(”the id of thread is:“+().getId())。(”the sleep time is:“+sleepTime)。} catch(InterruptedException e){ // TODO Autogenerated catch block break。} } } } 實(shí)驗(yàn)4: package test4。import .*。//用于導(dǎo)入必要的javaBean文件 import .*。import 。import 。@SuppressWarnings(”serial“)public class Ex4 extends MultiThreadApplet { Thread clockThread。Font font。public void init()//用于初始化的標(biāo)準(zhǔn)程序 {font = new Font(”TimesRoman“, , 48)。//定義一字體格式字體timesRoman 加粗大小48磅 } public void start()//用于啟動(dòng)的標(biāo)準(zhǔn)程序 { if(clockThread == null)//判斷線程是否還未創(chuàng)建clockThread = new Thread(this, ”Showtime“)。//將本程序創(chuàng)建成名為showtime的新線程()。//啟動(dòng)線程} public void run()// 用于定義運(yùn)行內(nèi)容的標(biāo)準(zhǔn)程序{// while(clockThread!=null)while(true)// 此循環(huán)讓時(shí)鐘始終走下去{repaint()。// 重繪組件即調(diào)用paint方法畫出下一個(gè)新時(shí)鐘try{(1000)。// 休眠1秒即讓時(shí)鐘一秒走一次}catch(InterruptedException e)// 異常錯(cuò)誤處理防止出現(xiàn)中斷錯(cuò)誤{}} } public void paint(Graphics g)// 用于繪畫的標(biāo)準(zhǔn)程序此處畫出當(dāng)前時(shí)間的表盤{Calendar calendar =new GregorianCalendar()。//(()+ ”:“ + ()+ ”:“+ (), 10, 100)。// 在時(shí)鐘的下方用文字顯示當(dāng)前的時(shí)間} public void stop(){ //用于停止的標(biāo)準(zhǔn)程序 ()。//將時(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)宋體,單倍行距。實(shí)驗(yàn)報(bào)告書寫說(shuō)明實(shí)驗(yàn)報(bào)告中實(shí)驗(yàn)?zāi)康暮鸵蟆?shí)驗(yàn)儀器和設(shè)備、實(shí)驗(yàn)內(nèi)容與過(guò)程、實(shí)驗(yàn)結(jié)果與分析這四項(xiàng)內(nèi)容為必需項(xiàng)。教師可根據(jù)學(xué)科特點(diǎn)和實(shí)驗(yàn)具體要求增加項(xiàng)目。填寫注意事項(xiàng)(1)細(xì)致觀察,及時(shí)、準(zhǔn)確、如實(shí)記錄。(2)準(zhǔn)確說(shuō)明,層次清晰。(3)盡量采用專用術(shù)語(yǔ)來(lái)說(shuō)明事物。(4)外文、符號(hào)、公式要準(zhǔn)確,應(yīng)使用統(tǒng)一規(guī)定的名詞和符號(hào)。(5)應(yīng)獨(dú)立完成實(shí)驗(yàn)報(bào)告的書寫,嚴(yán)禁抄襲、復(fù)印,一經(jīng)發(fā)現(xiàn),以零分論處。實(shí)驗(yàn)報(bào)告批改說(shuō)明實(shí)驗(yàn)報(bào)告的批改要及時(shí)、認(rèn)真、仔細(xì),一律用紅色筆批改。實(shí)驗(yàn)報(bào)告的批改成績(jī)采用五級(jí)記分制或百分制,按《金陵科技學(xué)院課堂教學(xué)實(shí)施細(xì)則》中作業(yè)批閱成績(jī)?cè)u(píng)定要求執(zhí)行。實(shí)驗(yàn)項(xiàng)目名稱:Java編程基礎(chǔ) 實(shí)驗(yàn)學(xué)時(shí): 6 同組學(xué)生姓名: ———— 實(shí)驗(yàn)地點(diǎn): 工科樓A101 實(shí)驗(yàn)日期: ~ 實(shí)驗(yàn)成績(jī): 批改教師: 劉晶 批改時(shí)間:實(shí)驗(yàn)1 Java編程基礎(chǔ)一、實(shí)驗(yàn)?zāi)康暮鸵螅?);(2)熟練掌握J(rèn)ava應(yīng)用程序的結(jié)構(gòu);(3)了解Java語(yǔ)言的特點(diǎn),基本語(yǔ)句、運(yùn)算符及表達(dá)式的使用方法;(4)熟練掌握常見(jiàn)數(shù)據(jù)類型的使用;(5)熟練掌握ifelse、switch、while、dowhile、for、continue、break、return語(yǔ)句的使用方法;(6)熟練掌握數(shù)組和字符串的使用;(7)調(diào)試程序要記錄調(diào)試過(guò)程中出現(xiàn)的問(wèn)題及解
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1