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

正文內(nèi)容

java實(shí)驗(yàn)報(bào)告(更新版)

2025-11-09 06:07上一頁面

下一頁面
  

【正文】 newStr)){ (str+“是回文字符串”)。else(“The dort: null”)。//再判斷mat[row][max]是否在列上最小int j=0。//找到鞍點(diǎn)標(biāo)記int row=0。}(num[i][j]+“ ”)。inum[i]=new int[2*i+1]。i){arr[i][j]=j。iarr[i]=new int[]。i {j = 2。i++){if(prime[i]!= 0){if(i % 10 == 0 amp。}else if(score=60amp。Scanner reader=new Scanner()。=300。要求:(1)編譯調(diào)試程序之前應(yīng)配置好環(huán)境變量;(2)要分別掌握用JDK命令行和Eclipse集成開發(fā)環(huán)境調(diào)試Java程序;(3)注意Java兩大類程序:應(yīng)用程序和小程序的區(qū)別。(“s1 == s4= ” +result142)。boolean result142 = s1 == s4。String s3 = new String(“This is the second string.”)。要求從鍵盤輸入學(xué)生成績(jī),60分以下為D等;60~69為C等;70~89為B等;90~100為A等。} }(2)分別使用JDK命令行和Eclipse編譯Java Applet,并建立HTML文檔運(yùn)行該Applet。(4)外文、符號(hào)、公式要準(zhǔn)確,應(yīng)使用統(tǒng)一規(guī)定的名詞和符號(hào)。setCustomFont(new Font(name, type, size))。(customFont)。(false)。GraphicsEnvironment ge = ()。(new ItemListener(){ //大小動(dòng)作 public void itemStateChanged(ItemEvent event){ //添加監(jiān)聽器獲取選擇用戶的字號(hào)大小size =(new Integer((String)()).intValue())。setCustomFont(new Font(name, type, size))。(new fontListener())。(cb2)。public FontDialog(Frame owner, String title, boolean modal){init()。private JLabel lbl2 = new JLabel(”字形:“)。private int height = import .*。}/** * 主函數(shù) * * * **/ public static void main(String[] args){MiniNote note = new MiniNote()。(cancel)。((”方向“))。} } })。} if(())//向上搜索{ if(()== null){a = (strB, ().length()().length()+ 1)。str1 = ()。final JRadioButton down = new JRadioButton(”向下(D)“)。}//方法mySearch()結(jié)束 /** * search方法 * * 實(shí)現(xiàn)查找功能 * */ public void search(){final JDialog findDialog = new JDialog(this, ”查找下一個(gè)“, true)。(replacePanel)。(cancel)。((”方向“))。} } })。} if(())//向上搜索{ if(()== null){a = (strB, ().length()().length()+ 1)。str1 = ()。} if(().length() 0amp。b = ().length()。strB = str4。//獲取光標(biāo)位置String str1, str2, str3, str4, strA, strB。 ()!= null)(())。JButton searchNext = new JButton(”查找下一個(gè)(F)“)。final JTextField replaceText = new JTextField(30)。()。char[] content = new char[size]。} else if(eventSource == menuItem[15]||eventSource == menuItem[16])//查找下一個(gè) { search()。else (true)。(”“, (), ())。} } else if(eventSource==menuItem[14])//退出動(dòng)作 { (0)。iObject eventSource = ()。(format)。add(jp)。jp = new JPanel()。//獲取默認(rèn)工具包。JPopupMenu popupMenu = new JPopupMenu()。import .*。FlowLayout()設(shè)置布局,setSize()設(shè)置大小add()添加需要用的原件。(selection,null)。程序說明:整個(gè)記事本分成:Jframe程序主體框架,Jmenu菜單欄、JtextArea文本輸入?yún)^(qū)、PopupMenu右鍵菜單、JscrollPane滾動(dòng)條、FonDialog字體類等。能夠讀取磁盤中現(xiàn)有的純文本文件,以及方便用戶進(jìn)行需要的編輯功能。三、課程設(shè)計(jì)說明:需求分析:簡(jiǎn)單文本編輯器提供給用戶基本的純文本編輯功能,能夠?qū)⒂脩翡浫氲奈谋敬鎯?chǔ)到本地磁盤中。(二)主要的組件包括:① 基本的Frame框架; ② 菜單;③ 打開文件對(duì)話框; ④ 保存文件對(duì)話框; ⑤ 顏色對(duì)話框; ⑥ 簡(jiǎn)單的幫助框架。StringSelection selection= new StringSelection(text)。(3)至于字體功能的實(shí)現(xiàn),則是新建了一個(gè)字體類,在這個(gè)類中設(shè)置了字形,字體以及大小并且有字體樣式可預(yù)覽用戶當(dāng)前的設(shè)置。}附錄:源代碼//記事本主體類 import .*。JMenuItem[] menuItem ={ //菜單下拉項(xiàng) new JMenuItem(”新建(N)“), new JMenuItem(”打開(O)“), new JMenuItem(”保存(S)“), new JMenuItem(”打印(P)“), new JMenuItem(”全選(A)“), new JMenuItem(”復(fù)制(C)“), new JMenuItem(”剪切(T)“), new JMenuItem(”粘貼(P)“), new JMenuItem(”自動(dòng)換行(W)“), new JMenuItem(”字體(F)“), new JMenuItem(”狀態(tài)欄(S)“), new JMenuItem(”幫助主題(H)“), new JMenuItem(”關(guān)于記事本(A)“), new JMenuItem(”頁面設(shè)置(U)“), new JMenuItem(”退出(X)“), new JMenuItem(”查找(F)“), new JMenuItem(”查找下一個(gè)(N)“), new JMenuItem(”替換(R)“)}。private Toolkit toolKit。js = new JScrollPane(textArea)。//文本區(qū)域添加右鍵 (popupMenu)。(edit)。//注冊(cè)各個(gè)菜單項(xiàng)的事件監(jiān)聽器for(int i=0。if(fileName!=null){ writeFile(fileName)。(selection,null)。} else if(eventSource == menuItem[8])//自動(dòng)換行 { if(())(false)。(null, help, ”關(guān)于記事本“, , )。int charsRead = 0。(())。final JTextField findText = new JTextField(30)。(down)。amp。} while(a 1){ int FindStartPos = ()。} else { strA = str2。} else if(()){(a)。replaceCount++。String str1, str2, str3, str4, strA, strB。strB = str4。} } else { (null, ”找不到您查找的內(nèi)容!“, ”記事本“, )。JPanel direction = new JPanel()。(replaceAll)。(direction)。(true)。final JRadioButton up = new JRadioButton(”向上(U)“)。String str1, str2, str3, str4, strA, strB。strB = str4。} } else { (null, ”找不到您查找的內(nèi)容!“, ”記事本“, )。JPanel direction = new JPanel()。(direction)。(true)。import 。private int width = 480。private JLabel lbl1 = new JLabel(”字體:“)。private String[] zt。(lbl2)。(true)。if((”常規(guī)“)){ type = 。} } })。cancelButton = new JButton(”取消“)。(true)。}private void setCustomFont(Font customFont)//{ = customFont。} else if(()== okButton){ okpressed = true。(3)盡量采用專用術(shù)語來說明事物。public class Hello { public static void main(String args[]){ (“Hello!”)。}} (3)根據(jù)變量score中存放的考試分?jǐn)?shù),輸出對(duì)應(yīng)的等級(jí)。String s2 = “This is the second string.”。boolean result141 = (s4)。(“s1 equals s4= ” +result141)。(9)使用String類的pareTo(String s)方法,對(duì)以下字符串從小到大排序:“melon”, “apple”, “pear”, “banana”,顯示輸出排序結(jié)果。public void init(){=100。(“請(qǐng)輸入分?jǐn)?shù)按回車”)。score(“B”)。i 。for(int i = start。for(i=0。i=j。for(int i=0。num[i][j]=k。}boolean find = false。boolean yes = true。}if(find)(“The dort: ”+mat[row][max])。//將Sr倒置的方法 String newStr=new String(sb)。(“排序結(jié)果是:”)。在實(shí)驗(yàn)中,配置jdk的環(huán)境變量要注意它的path和 classpath,如果classpath本身就有,可以在后面加分號(hào),這樣不影響其它的classpath的使用。(3)包的建立與使用:設(shè)計(jì)計(jì)算器類Calculator,計(jì)算加、減、乘、除和立方體體積,并且打包為mypackage。2)設(shè)計(jì)一個(gè)描述本科生的類Undergraduate,該類繼承并擴(kuò)展Student類。提示:對(duì)所有雇員類型都使用earnings()方法,但每個(gè)人掙的工資按他所屬的雇員類計(jì)算,所有雇員類都是從超類Employee派生出的。lastName=last。定義一個(gè)測(cè)試類,測(cè)試飛機(jī)和鳥。String cl=()。(11)編寫程序包含自定義異常MyException,當(dāng)100被13和4除時(shí)拋出該異常,其余除數(shù)顯示商值。//主方法先創(chuàng)建類然后調(diào)用類()。} public void setReal(double real){ = real。return C。==)。} }(3)public class Calculate { double i,j, t。} public double cheng(){return i*j。(”相除 =“+())。(”余額為:“+balance)。} }(5)public class Student { String name。} public float get(){return average。else (”研究生成績(jī)不合格“)。(”研究生生三門成績(jī)分別為“+”90,“+”84,“+”88“)。} public class Triangle extends ClosedFigure {// ClosedFigure繼承Triangle double a,b,c。return (s*(sa)*(sb)*(sc))。public Employee(String first,String last){firstName=first。 = salary。 = price。}} public final class HourlyWorker extends Employee {double time。Employee c2=new CommissionWorker(”李“,”四“,4000,1500,2)。double height。} public class Yuanzhu extends Circle implements Volume { public Yuanzhu(String shape, double r, double height, double pi){ super(shape, r, height, pi)。} } public class Test { public static void main(String[] args){Yuanzhu c1=new Yuanzhu(”圓柱“,4,6,)。}
點(diǎn)擊復(fù)制文檔內(nèi)容
醫(yī)療健康相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1