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

正文內(nèi)容

java實驗報告-文庫吧資料

2024-11-05 06:07本頁面
  

【正文】 gs[]){ int num[][]=new int[4][]。(“ ”)。ifor(j=0。i){arr[i][j]=j。jfor(i=3。j){arr[i][j]=i。ifor(j=3。iarr[i]=new int[]。int arr[][]=new int[4][]。}}return prime。}if(j == i){prime[step] = i。i {j = 2。int[] prime = new int[length]。// 打印數(shù)據(jù)}}} public static int[] calculation(int length, int start, int end){int j。 i!= 0)()。i++){if(prime[i]!= 0){if(i % 10 == 0 amp。for(int i = 0。}else{(“數(shù)據(jù)錯誤”)。score(“C”)。}else if(score=60amp。amp。score(“A”)。if(score=90amp。Scanner reader=new Scanner()。//char grade。import 。(“Hello!”, 20, 20)。=300。public class HelloApplet extends Applet { int height,width。} }(2)Eclipse編譯Java Applet import .*。)(1)主方法傳遞參數(shù)“Hello world”字符串,并輸出public class Hello { public Hello(){(“HelloWorld!”)。要求:(1)編譯調(diào)試程序之前應(yīng)配置好環(huán)境變量;(2)要分別掌握用JDK命令行和Eclipse集成開發(fā)環(huán)境調(diào)試Java程序;(3)注意Java兩大類程序:應(yīng)用程序和小程序的區(qū)別。算法二:將原串str反轉(zhuǎn)成temp串,再比較兩串,如果相等則是回文字符串。如“rotor”是一個回文字符串。(“s1 == s5= ” +result152)。(“s1 == s4= ” +result142)。(“s1 == s3= ” +result132)。(“s1 == s2= ” +result122)。boolean result152 = s1 == s5。boolean result142 = s1 == s4。boolean result132 = s1 == s3。boolean result122 = s1 == s2。String s5 = s1。String s3 = new String(“This is the second string.”)。class StringTest2{ public static void main(String args[]){String s1 = “This is the second string.”。也可能無鞍點。(5)輸出下列數(shù)字形式,要求用二維數(shù)組完成。要求從鍵盤輸入學(xué)生成績,60分以下為D等;60~69為C等;70~89為B等;90~100為A等。(“Hello!”,20,20)。import 。記錄操作過程。} }(2)分別使用JDK命令行和Eclipse編譯Java Applet,并建立HTML文檔運行該Applet。三、實驗過程(1)分別使用JDK命令行和Eclipse編譯運行Java應(yīng)用程序;適當(dāng)添加注釋信息,通過javadoc生成注釋文檔;為主方法傳遞參數(shù)“Hello world”字符串,并輸出,記錄操作過程。實驗項目名稱:Java編程基礎(chǔ) 實驗學(xué)時: 6 同組學(xué)生姓名: ———— 實驗地點: 工科樓A101 實驗日期: ~ 實驗成績: 批改教師: 劉晶 批改時間:實驗1 Java編程基礎(chǔ)一、實驗?zāi)康暮鸵螅?);(2)熟練掌握Java應(yīng)用程序的結(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)的問題及解決辦法;(8)編寫程序要規(guī)范、正確,上機調(diào)試過程和結(jié)果要有記錄,不斷積累編程及調(diào)試經(jīng)驗;(9)做完實驗后給出本實驗的實驗報告。實驗報告批改說明實驗報告的批改要及時、認真、仔細,一律用紅色筆批改。(4)外文、符號、公式要準確,應(yīng)使用統(tǒng)一規(guī)定的名詞和符號。(2)準確說明,層次清晰。教師可根據(jù)學(xué)科特點和實驗具體要求增加項目。} } } }第二篇:JAVA實驗報告學(xué) 生 實 驗 報 告 冊(理工類)課程名稱:面向?qū)ο蟪绦蛟O(shè)計 專業(yè)班級:16計算機科學(xué)與技術(shù)(專轉(zhuǎn)本)學(xué)生學(xué)號: 1613203022 學(xué)生姓名: 張義丹所屬院部: 計算機工程 指導(dǎo)教師: 劉 晶 16 ——20 17 學(xué)年 第 2 學(xué)期金陵科技學(xué)院教務(wù)處制 實驗報告書寫要求實驗報告上交電子稿,標(biāo)題采用四號黑體,正文采用小四號宋體,單倍行距。setCustomFont(new Font(name, type, size))。cancelpressed = true。}private class fontListener extends WindowAdapter implements ActionListener //監(jiān)聽事件類 { public void windowClosing(WindowEvent e){ ()。}public String toString(){ return ()。(customFont)。}private int getHeight(){ return()。}public void setHeight(int height){ = height。(new TitledBorder(”字體樣式))。(false)。(6)。area = new JTextArea(6, 30)。cb1 = new JComboBox(zt)。GraphicsEnvironment ge = ()。} }private void init(){ //初始化 okButton = new JButton(”確定“)。if(okpressed){ return getCustomFont()。} })。(new ItemListener(){ //大小動作 public void itemStateChanged(ItemEvent event){ //添加監(jiān)聽器獲取選擇用戶的字號大小size =(new Integer((String)()).intValue())。setCustomFont(new Font(name, type, size))。setCustomFont(new Font(name, type, size))。字體動作 添加監(jiān)聽器字形動作 添加監(jiān)聽器 setCustomFont(new Font(name, type, size))。setCustomFont(new Font(name, type, size))。(new ItemListener(){ // public void itemStateChanged(ItemEvent event){ //獲取選擇用戶的字形String s =(String)()。setCustomFont(new Font(name, type, size))。(new fontListener())。(new fontListener())。(false)。(cancelButton)。(cb3)。(cb2)。(cb1)。(getWidth(), getHeight())。(())。public FontDialog(Frame owner, String title, boolean modal){init()。private JComboBox cb1, cb3 = new JComboBox(dx), cb2 = new JComboBox(zx)。String[] dx = {”8“ , ”9“ , ”10“, ”12“, ”14“, ”15“, ”16“, ”18“,”20“, ”21“, ”22“, ”24“, ”26“, ”28“, ”30“, ”36“,”48“, ”54“,”72“ , ”89“}。private JTextArea area。private JLabel lbl2 = new JLabel(”字形:“)。private boolean cancelpressed = false。private Font customFont = new Font(”宋體“, , 12)。private int type = 0。private int height = private JButton okButton, cancelButton。import .*。import .*。import .*。import 。import 。}} //字體類import 。}/** * 主函數(shù) * * * **/ public static void main(String[] args){MiniNote note = new MiniNote()。(230, 280)。//設(shè)置”替換“對話框的大小、可更改大小(否)、位置和可見性(425, 200)。(centerPanel)。(cancel)。(matchcase)。(findText)。(down)。((”方向“))。JPanel topPanel = new JPanel()。//創(chuàng)建”替換“對話框的界面JPanel bottomPanel = new JPanel()。(new ActionListener(){ public void actionPerformed(ActionEvent e){ ()。} } })。(a, a + b)。} else if(()){(a)。b = ().length()。} if(())//向上搜索{ if(()== null){a = (strB, ().length()().length()+ 1)。} else //區(qū)分大小寫 { strA = str2。//”區(qū)分大小寫“的CheckBox被選中if(())//不區(qū)分大小寫{ strA = str1。str3 = ()。str1 = ()。int FindStartPos = ()。JButton searchNext = new JButton(”查找下一個(F)“)。//默認向下搜索(up)。final JRadioButton down = new JRadioButton(”向下(D)“)。ButtonGroup bGroup = new ButtonGroup()。final JTextField findText = new JTextField(17)。(new FlowLayout())。}//方法mySearch()結(jié)束 /** * search方法 * * 實現(xiàn)查找功能 * */ public void search(){final JDialog findDialog = new JDialog(this, ”查找下一個“, true)。(230, 280)。//設(shè)置”查找與替換“對話框的大小、可更改大小(否)、位置和可見性(550, 240)。(centerPanel)。(replacePanel)。(matchcase)。(replaceText)。(findText)。(cancel)。(replace)。(new GridLayout(1, 2))。(down)。((”方向“))。JPanel topPanel = new JPanel()。//創(chuàng)建”查找與替換“對話框的界面JPanel bottomPanel = new JPanel()。(new ActionListener(){ public void actionPerformed(ActionEvent e){ ()。} } })。(a, a + b)。} else if(()){(a)。b = ().length()。} if(())//向上搜索{ if(()== null){a = (strB, ().length()().length()+ 1)。} else //不區(qū)分大小寫 { strA = str2。//”區(qū)分大小寫“的CheckBox被選中if(())//區(qū)分大小寫{ strA = str1。str3 = ()。str1 = ()。int FindStartPos = ()。} }//end while } })。 ()!= null)//用指定字符代替選定內(nèi)容 {(())。} if(().length() 0amp。 ()!= null)//用空字符代替選定內(nèi)容{(”“)。} } if(().length()== 0amp。} } else { if(replaceCount == 0){ (findDialog,”找不到您查找的內(nèi)容!“, ”記事本“,)。b = ().length()。(a, a + b)。} }if(a 1){ if(()){(a)。} } else //向下搜索{ if(()== null){ a = (strB, FindStartPos)。strB = str4。strB = str3。str4 = ()。str2 = ()。//獲取光標(biāo)位置String str1, str2, str3, str4, strA, strB。return。if(().length()=
點擊復(fù)制文檔內(nèi)容
醫(yī)療健康相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1