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

正文內(nèi)容

java實驗報告電子稿(匯編)-文庫吧

2025-10-21 13:47 本頁面


【正文】 。} 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){} }四、實驗結(jié)果與分析 : Java高級編程實驗學時: 6 同組學生姓名:————實驗地點: 實驗日期:實驗成績: 批改教師:批改時間:一、實驗目的和要求(1)了解文件的概念和文件對象的創(chuàng)建方法;(2)掌握使用文件輸入輸出流讀寫文件的方法;(3)了解線程的基本概念和多線程程序設(shè)計的基本方法;(4)掌握數(shù)據(jù)庫連接的方法;(5)創(chuàng)建SQL查詢并更新數(shù)據(jù)庫中的信息;(6)調(diào)試程序要記錄調(diào)試過程中出現(xiàn)的問題及解決辦法;(7)編寫程序要規(guī)范、正確,上機調(diào)試過程和結(jié)果要有記錄,不斷積累編程及調(diào)試經(jīng)驗;(8)做完實驗后給出本實驗的實驗報告。二、實驗儀器和設(shè)備奔騰以上計算機,Windows 操作系統(tǒng),Access數(shù)據(jù)庫。三、實驗過程(1)使用文件字節(jié)輸入/輸出流,合并兩個指定文件;當文件中的數(shù)據(jù)已排序時,合并后的數(shù)據(jù)也要求是已排序的。(2)將Java的關(guān)鍵字保存在一個文本文件中,判斷一個字符串是否為Java的關(guān)鍵字。(3)編寫在構(gòu)造方法中產(chǎn)生一個15之間的隨機數(shù)的繼承Thread類的線程類DelayPrintThread,使得線程體每休眠此隨機數(shù)時間就打印輸出線程號和休眠時間;,在main()方法中創(chuàng)建兩個線程,并應用sleep()控制主應用程序延遲一段時間。(4)編寫繼承Runnable接口的Applet多線程小程序類MultiThreadApplet,編寫繼承該類的Applet小程序類Clock,在Clock中重新構(gòu)造父類的run()方法,實現(xiàn)數(shù)字時鐘的功能,要求不斷刷新顯示時、分、秒。要求:(1)注意選用適當?shù)奈募鬟M行文件讀寫;(2)學會兩種創(chuàng)建線程的方法,并比較使用場合;(3)養(yǎng)成良好的編程習慣,嚴格按照命名規(guī)則為包、類及類成員命名,將每個程序打包,;(4)學會查閱Java API文檔,如查找常用工具類。程序清單:(建議程序中適當添加注釋信息,增強可讀性;較長程序可分欄書寫,保證報告排版整潔美觀。)(實驗四程序清單續(xù)1)實驗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。}}} } } 實驗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。} }(實驗四程序清單續(xù)2)實驗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之間的隨機數(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。} } } } 實驗4: package test4。import .*。//用于導入必要的javaBean文件 import .*。import 。import 。@SuppressWarnings(”serial“)public class Ex4 extends MultiThreadApplet { Thread clockThread。Font font。public void init()//用于初始化的標準程序 {font = new Font(”TimesRoman“, , 48)。//定義一字體格式字體timesRoman 加粗大小48磅 } public void start()//用于啟動的標準程序 { if(clockThread == null)//判斷線程是否還未創(chuàng)建clockThread = new Thread(this, ”Showtime“)。//將本程序創(chuàng)建成名為showtime的新線程()。//啟動線程} public void run()// 用于定義運行內(nèi)容的標準程序{// while(clockThread!=null)while(true)// 此循環(huán)讓時鐘始終走下去{repaint()。// 重繪組件即調(diào)用paint方法畫出下一個新時鐘try{(1000)。// 休眠1秒即讓時鐘一秒走一次}catch(InterruptedException e)// 異常錯誤處理防止出現(xiàn)中斷錯誤{}} } public void paint(Graphics g)// 用于繪畫的標準程序此處畫出當前時間的表盤{Calendar calendar =new GregorianCalendar()。//(()+ ”:“ + ()+ ”:“+ (), 10, 100)。// 在時鐘的下方用文字顯示當前的時間} public void stop(){ //用于停止的標準程序 ()。//將時鐘線程停止 } } @SuppressWarnings(”serial)class MultiThreadApplet extends Applet implements Runnable { public void run(){// TODO Autogenerated method stub } }四、實驗結(jié)果與分析 實驗1:Array1:13579 array2:2468 合并后 result:123456789 實驗2:The content of text is : abstract assert class The result is : yes 實驗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 實驗4: 左側(cè)為時間第二篇:JAVA實驗報告學 生 實 驗 報 告 冊(理工類)課程名稱:面向?qū)ο蟪绦蛟O(shè)計 專業(yè)班級:16計算機科學與技術(shù)(專轉(zhuǎn)本)學生學號: 1613203022 學生姓名: 張義丹所屬院部: 計算機工程 指導教師: 劉 晶 16 ——20 17 學年 第 2 學期金陵科技學院教務處制 實驗報告書寫要求實驗報告上交電子稿,標題采用四號黑體,正文采用小四號宋體,單倍行距。實驗報告書寫說明實驗報告中實驗目的和要求、實驗儀器和設(shè)備、實驗內(nèi)容與過程、實驗結(jié)果與分析這四項內(nèi)容為必需項。教師可根據(jù)學科特點和實驗具體要求增加項目。填寫注意事項(1)細致觀察,及時、準確、如實記錄。(2)準確說明,層次清晰。(3)盡量采用專用術(shù)語來說明事物。(4)外文、符號、公式要準確,應使用統(tǒng)一規(guī)定的名詞和符號。(5)應獨立完成實驗報告的書寫,嚴禁抄襲、復印,一經(jīng)發(fā)現(xiàn),以零分論處。實驗報告批改說明實驗報告的批改要及時、認真、仔細,一律用紅色筆批改。實驗報告的批改成績采用五級記分制或百分制,按《金陵科技學院課堂教學實施細則》中作業(yè)批閱成績評定要求執(zhí)行。實驗項目名稱:Java編程基礎(chǔ) 實驗學時: 6 同組學生姓名: ———— 實驗地點: 工科樓A101 實驗日期: ~ 實驗成績: 批改教師: 劉晶 批改時間:實驗1 Java編程基礎(chǔ)一、實驗目的和要求(1);(2)熟練掌握Java應用程序的結(jié)構(gòu);(3)了解Java語言的特點,基本語句、運算符及表達式的使用方法;(4)熟練掌握常見數(shù)據(jù)類型的使用;(5)熟練掌握ifelse、switch、while、dowhile、for、continue、break、return語句的使用方法;(6)熟練掌握數(shù)組和字符串的使用;(7)調(diào)試程序要記錄調(diào)試過程中出現(xiàn)的問題及解
點擊復制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1