专属java练习题

专属java练习题

ID:83425585

大小:15.35 MB

页数:110页

时间:2023-07-14

上传者:灯火阑珊2019
专属java练习题_第1页
专属java练习题_第2页
专属java练习题_第3页
专属java练习题_第4页
专属java练习题_第5页
专属java练习题_第6页
专属java练习题_第7页
专属java练习题_第8页
专属java练习题_第9页
专属java练习题_第10页
资源描述:

《专属java练习题》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

ᡠᨵᓫ⌱⚪1ஹJavaḄA☢ᔣB☢ᔣCDᫀA2ஹFrameḄ!ᳮᘤ஺AFlowLayoutBBorderLayoutCGridLayoutDCardLayoutᫀB3ஹ%&Java'()ឋḄᱯ,oA☢ᔣB-ᐰឋCᑖ01D'234ᫀD4ஹ5ᑡᨵᐵJavaḄ89:;<=ḄoAJava>?ᑖᜧAᑏḄBCᦻEFGpublicḄFHIJKCCᦻEFᐸ᡽NFO.jarDCᦻE:publicḄᦪQ>▲ᫀB5ஹ5ᑡS⊤UVᑴ᦮ᦪḄoA0XA6B-1E3C1840D0144ᫀDY⚪ὃḄJavaḄ[ᓫᦪ\஺᦮]^ᑖ3_`ᑏa(1)ᓝVᑴ᦮ᦪ;᝞189,-360o(2)UVᑴ᦮ᦪ;d0eᜮ;᝞012⊤gᓝVᑴḄ10஺(3)ᓝhVᑴ᦮ᦪ;dOxᡈ0Xeᜮ;᝞0x123⊤gᓝVᑴᦪ291஺6ஹᢥkᜅmnoᦪḄᦪQᑜAk1m?ḄoArᐗBtᐗCuᐗDᐗᫀA7ஹ᡻w5☢xy;z{Ḅ<=|}opublicclassTest

1publicstaticvoidmain(Stringargs[])System.out.print(100%3);System,out.print;System.out.print(100%3.0);}}A!1,1B!1,1.0C!1.0,1D!1.0,1.0ᫀB_8ஹ5ᑡ~:┯Ḅ஺A!floatf=ll.If;B!doubled=5.3E12;C!charc='\r';D!bytebb=433;ᫀD9ஹ{5☢xif(x>0){System,out.println("Hello.");}elseif(x>-3){System,out.println(/zNicetomeetyou!");}else{System,out.printin("Howareyou?");}ᡭᓺm"Howareyou?”,ᑣxḄ஺A!x>0B!x>-3C!x<=-3D!x<=0&x>-3ᫀCY⚪ὃḄᩩE஺if-elseif|᪀if(ᩩE1)statementl;ᡈ{blockl}elseif(ᩩE2)statement2;ᡈ{block2}elseif(ᩩEN)statementN;ᡈ{blockN}[elsestatementN+1;ᡈ{blockN+1}]nஹ5ᑡ89:;┯Ḅ

2AGḄᐵBᡠḄC'¡¢Ḅ£¤¥☢DG§¨©ªᨵᐵᫀD12ஹ▅®¯ᳮ¢5☢xclassManagerextendsEmployee{publicManager(Stringn,doubles,intyear,intmonth,intday)(super(n,s,year,month,day);bonus=0;}publicdoublegetSalary()(doublebaseSalary=super.getSalary();returnbaseSalary+bonus;}publicvoidsetBonus(doubleb)fbonus=b;}privatedoublebonus;}ManagerEmployeeḄÐ;ᐸᳮᵫ஺AManagerḄ〉ᵨÔÕBextendsᐵÖ×CManagerḄØÙA¡DÚᕒÜÝᳮᫀB13ஹ5ᑡᐵßAppletḄ89:;┯ḄoAAppletJava;ᡠd'dᵫJDK:Ḅ¢âᘤjava,exeä¢âkwBAppletåæçèOjava,applet.Appletᡈjavax.swing.JAppletḄÐCAppletGApplicationḄê⌕?ìᙠ᡻wîDᙠHTMLᦻE:òᵨóPARAMö᪗ø'dᔣAppletù⌴ûᦪ

3ᫀA14ஹGAppletýþᕜᐵḄḄᦪoA4B3C2D5ᫀA15ஹ☢booleana=false;booleanb=true;booleanc=(a&&b)&&(!b);booleanresult=(a&b)&(!b);᡻012345Ḅ67஺Ac=false;result=falseBc=true;result=trueCc=true;result=falseDc=false;result=trueᫀA16ஹ:;JavaApplication@ᦻBCDEFḄG⁚ṹᦻB3JKG⁚ṹᦻBḄ᡽MNO஺A.javaB.classC.htmlD.exeᫀB17ஹᑡᱯXY3JavaZ[\᡻0ḄᱯX]^஺AG⁚_ṹB`aC☟᝱deD:;ᫀA18ஹghJavaYᨵᦔḄᐵkG஺AconstBNULLCfalseDthisᫀB19ஹghJavaY45Ḅ᦮ᦪ⊤r஺A22B0x22C022D22HᫀD20ஹgGuvJavaYᔠḄ᪗yu஺AsuperB3numberCttnumberD$number

4ᫀD21ஹ{|᝞~Strings="story";☢⊤ᔠḄ஺A!s+=books;B!charc=s[1];C!intlen=s.length;D!Stringt=s.toLowerCase();ᫀD22ஹ☢main஺ᦪḄᔠᦪ஺A!charargs[]B!charargs[][]C!Stringargs[]D!StringargsᫀC23ஹ᡻0g23str2ḄoStringstrl="abc";Stringstr2=strl.concat("cde");A!abodeB!abccdeC!cdeabcD!edccbaᫀB24ஹ{|᝞_ṹbooleanm=true;if(m==false)System,out.printin("False");elseSystem.out.printin(EETrueE/);᡻067oA!FalseB!TrueC!NoneD!0┯ᫀB25ஹ᝞7YḄᡂᕒ^ᒹ3ᑣᵨgu஺A!ᑴuB!publicC!protectedD!finalᫀA26ஹᙠJavaY3guh45Ḅ஺A!privateB!publicC!protectedD!friendᫀD27ஹg_ṹ᡻02Ḅ67O

5intx=3inty=10System.out.printIn(y%x);A1.0B1C3D3.0ᫀB28ஹg⊤hᔠḄ஺AStringx="Hello”;inty=9;x+=y;BStringx="Hello”;inty=9;if(x==y){}CStringx="Hello”;inty=9;x=x+y;DStringx=null;inty=(x!=null)&&(x.length()>0)?x.length():0ᫀB29ஹmainJavaApplication᡻0Ḅᐭ¯X3ᐵ°mainḄᜮgᔠḄ஺Apublicstaticvoidmain()Bpublicstaticvoidmain(StringE]args)Cpublicstaticintmain(StringE]arg)Dpublicvoidmain(Stringarg[])ᫀB30ஹ¶x=1,y=2,z=3,¹ij⊤y+=z—/++xḄ,A3B3.5C4D5ᫀA31ஹ☢᪗yuYhᔠḄ஺ABigMeaninglessNameB$intC1sD$1ᫀC32ஹᑡ½¾ᩨGuḄ45⊤r஺A\\B*\\C\D\'\'ᫀA33ஹOABḄ^ÃÄᦪÅÆḄmethodÇᑏᜮ3É

6ᵨNABÊOËÌÍÎgÏᵨÐ3ÑᜮḄÄOoA!staticvoidmethod()B!publicvoidmethod()C!finalvoidmethod()D!abstractvoidmethod()ᫀA34ஹᐵ°ÒᨵᑴuprivateÓ⛲Ḅᡂᕒ3gÕ45Ḅ஺A!ÎgÖᡠØᵨÑÙÚஹÛÐᙠ^ÃᒹYḄᐸÝஹᙠᐸÝᒹYḄÑḄÞB!ÎgßàØᵨÑáÚஹÑḄᡠᨵÞC!ÑÙÚᡠàÓᦋD!^ÃᒹYḄᫀC35ஹᑡḄopublicclassTest5{publicstaticvoidmain(Stringargs[]){Stringssl=newString(/Ehello/E);Stringss2=newString("hello");System,out.println(ssl==ss2);System.out.println(ssl.equals(ss2));}}A!true,falseB!true,trueC!false,trueD!false,falseᫀC36ஹ☢Ḅ_ṹY3᡻0]2iàjḄ஺inti=1;intj;j=i++LA!1,1B!1,2C!2,1D!2,2ᫀC37ஹpublicclassTesti(publicstaticvoidmain(Stringargs[]){

7intm=Integer.parselnt(args[0]);switch(m)case0:System,out.printin(/?case0");case1:System,out.println(/Ecase1");case2:System,out.println(//case2/z);break;default:System.out.printin("default");ᑡmḄãÃCØä"default”ḄA!0B!1C!2D!3ᫀD38>publicclassTest(publicstaticvoidmain(Stringarg[]){inti=5;do{System,out.println(i);}while(^i>4)}}᡻02ḄoA!4B!5C!54D!45ᫀB39ஹswitch(m)(case0:System.out.printlnC^Condition0");case1:System.out.printin("Condition1");case2:System,out.printlnC^Condition2");case3:System,out.printin(''Condition3");break;default:System,out.printin(''OtherCondition");

8åmḄO-3ᑡãÃ⌱⚗YḄᡠᨵéØä"Condition1"Ḅ஺A!0,1B!1,2C!2,3D!3,4ᫀA40outer:for(inti=0;i<3;i++)inner:for(intj=0;j<2;j++)|if(j==l)continueouter;System,out.println(j+"and"+i+";");)gê_ṹOA!0and0;0and1;0and2;B!0and0;1and0;2and0;C!1and0;1and1;1and2;D!2and0;2and1;2and2;ᫀA41ஹPanelëìḄíîïᳮᘤ஺A!FlowLayoutB!CardLayoutC!BorderLayoutD!GridLayoutᫀA42ஹòóᘤe¯ḄÅÆḄôoA!intB!StringC!voidD!ObjectᫀC43ஹ☢ÛappletḄõrᐵ஺A!update()B!draw()C!repaint()D!paint()ᫀB44ஹ☢hJavaYḄöᘤ஺A!FrameB!PanelC!ScrollbarD!DialogᫀC45ஹᑡᑁöøùḄú஺A!Ḅ┯B!:;ᡈ0YᡠüEḄøùýBC!⚜~ÿḄD!┯

9ᫀB46ஹ⍗ᑮ᝞ᜐᳮ!ᑡ#$%&Ḅ஺Aᣓ*B+,C./D1ᝅᫀC47ஹ᝞456ᡠᨵḄ9ᙠ;☢=ᕈ?@ABCDEᵨ!ᑡBCGᳮᘤ஺ACardLayoutBGridLayoutCBorderLayoutDFlowLayoutᫀB48ஹXYZ[\ᨵ஺AZ]B^]C_]D`]ᫀC49ஹSwing᪀Ḅᐹᨵ஺AgᙢiṹB᪗lCmᓫDoᘤᫀA50ஹ!ᑡrstrs$JavaḄrs஺AjavacBjavaCjavadocDappletviewerᫀA51ஹJava{ᦻḄ᡽~_____oAjavaBclassChtmlDexeᫀA52ஹmain$JavaApplication᡻ḄᐭᐵmainḄᜮ!$ᔠḄoApublicstaticvoidmain(Stringargs[])Bpublicstaticvoidmain()Cpublicstaticvoidmain(stringarg[])Dpublicstaticvoidmain(Stringargs)ᫀA

1053ஹ!ᑡ______$ᔠḄJava᪗஺ATree$GlassesBFirstJavaAppletC_$theLastOneD273.5ᫀD54ஹJavaḄᵨḄ$Unicodeṹᫀ¢[Unicodeṹᓰᵨ______[¤ᱯ¦஺A8B16C32D64ᫀB55ஹ§aḄ¨3!ᑡ©ª᡻«cḄ¨$oif(a>0)if(a>3)c=2;elsec=3;elsec=4;A1B2C3D4ᫀC56ஹᙠᑏJavaApplication§◤⌕Eᵨᑮ᪗³´ᐭ´,µ¶,¸¹ᙠḄºᜮᑏ=_____µ¶஺Aimportjava.awt.*;Bimportapplet.Applet;Cimportjava.io.*;Dimportjava.awt.Graphics;ᫀC57>Java$¼½¾,ᩭḄ஺ASunBMicrosoftCIBMDOracelᫀA58ஹ᡻iṹm=1;while(m++<2)System,out.printin(m);ᨬ«Ḅ´,$oA0B1C2DNothingandanexceptionisthrownᫀC

1159ஹᎷÇMyProg.javaÉÊËÌJDKÎËÌÏᡂÑDᵨÒÓËÌrs᡻Ô[µ¶javaMyProgIliketests,ÒÓmaintḄargs[0]$______஺AMyProgBIClikeDtestsᫀB60ஹᙠᑏᜐᳮḄJavat¢[catchµ¶ᙽ×DØÙµ¶ᙽÚDEÛᵨص¶ᙽᩭÜÝJavaḄᜐᳮÞᑴ஺Aif-elseBswitchCtryDthrowᫀC61ஹáâZ[᪗ᨵ஻ᐵä஻ᢥæḄµ¶$—AtextFieldb=newTextField(“ᐵä");BLabelb=newLabel("ᐵä");CCheckboxb=newCheckbox("ᐵä")êDButtonb=newButton(“ᐵä");ᫀD62ஹᙠEᵨinterface./Z[ëZᵨ!☢ì⛲ì⛲ØëØëªEᵨḄïᨬð஺AprivateBprotectedCprivateprotectedDpublicᫀD63ஹᎷÇᨵ!if(x>4){System,out.printin("Test1");}elseif(x>9){System,out.printin("Test2");}else{System,out.printin("Test3");}᝞4⌕´,Test2,ÒÓᩩ$______oAx<4Bx>4Cx>9Dôᨵ%&ᫀᫀD

1264ஹ______$shortḄõ¨ï஺A!-27-27-lB!0-216-1C!-215-2l5-lD!-231-231-1ᫀC65ஹ______$öZ[ᓝøÎᑴ¨ù¨úZ[longûü஺A!longnumber=345L;B!longnumber=0345;C!longnumber=0345L;D!longnumber=0x345L;ᫀD66ஹ!☢Ḅᱏþÿ┯஺A!Strings="Gonewiththewind”;Stringt="good஻Stringk=s+t;B!Strings="Gonewiththewind”;Stringt;t=s[3]+“one";C!Strings="Gonewiththewind”;Stringstandard=s.toUpperCase();D!Strings="homedirectory”;Stringt=s+3;ᫀB68ஹ☢Ḅṹif(x>0){System.out.printin("first");}elseif(x>-3){System.out.printin("second");}else{System,out.printin("third");}xḄᙠᑁᡭᓺ“second”஺A!x>0B!x>-3C!x<=-3D!x<-0&&x>-3ᫀD69ஹ!ᐵ#$%&ᵨ〉)Ḅ*+Ḅ,ḄTextFieldḄ⊤./TextFieldt=newTextField("theyaregood”,40);!012345Ḅ஺A!678Ḅ9!&ᵨ:;,B!$<2ᨬᜧḄᦪ340C!78Ḅ@A4B340%@D!ᵨᡝ9!DE

13ᫀD70ஹ☢ᐵ#IJḄKL45Ḅ3oAᙠJava2RᐕTᓫ$•IJBᙠJava2$%XRYZ$%[\CᙠJava2$%X^_IJ$%X`YZ$%[\DJavaḄᓫ$IJ&ṹ^9☠ᫀA71ஹ☢ᨵᐵdefᐸhᵨiḄ▰L_____3^lḄ஺Aᙠm1n☢opḄqrdeᙠm1⌨Ḅ᎛6u├BqrdewxyzdeCᙠm1᜜☢opḄY|deᙠl}6᪀⌼Dᙠm12opḄm1ḄdeR⌕l}6◤⌕$ᙠᫀD72ஹ☢ḄṹpublicclassData{publicstaticvoidmain(Stringargs[]){floatf=0.0;f+=l.0;System.out.println(f);______¤L3lḄ஺AD¥¦§┯BD¥45¨3©<┯Cª«1.0Dª«nullᫀA73ஹXḄ®⌕¯°Ḅ±%ᡂᕒde^6᜜rX´µ஺¶&ᵨ☢Ḅ·⛲¹º◤⌕Ḅ´µ»ᑴ஺ApublicBnomodifierCprotectedDprivateᫀD74ஹᎷ!ṹpublicclassParent{

14publicintaddValue(inta,intb){ints;s=a+b;returns;))classChiIdextendsParent{)⌱⚗2_____m19!45ÂᐭXChild2Ä᱄XḄm1^Æ6⌚È஺A!intaddValue(inta,intb){//dosomething...}B!publicvoidaddValue(){//dosomething...}C!publicintaddValue(inta,intb)throwsMyException{//dosomething...}D!publicfloataddValue(inta,intb,floatb=l.0){//dosomething...}ᫀB75ஹ_____⊤./3ÉÊ$%Ëᨵ10%Stringl}ḄᦪÌ஺A!charstr[];B!charstr[][];C!Stringstr[]=newString[10];D!Stringstr[10];ᫀC76ஹᎷᨵ!ṹStrings="hello";Stringt="hello”;charc[]={'h','e','1','1','o'};ᑡ⌱⚗2ÎÏfalseḄÐÑ3oA!s.equals(t);B!t.equals(c);C!s==t;D!t.equals(newString("hello"));ᫀB77ஹpaint()m1&ᵨXÒḄᦪ஺A!GraphicsB!Graphics2DC!StringD!ColorᫀA

1578ஹ☢⊤./345Ḅ஺A!byte=128;B!Boolean=null;C!longl=0xfffL;D!double=0.9239d;ᫀC79ஹᑡÓÔ©<ḄÕÖ3opublicclassExamp1e{Stringstr=newString("good");char[]ch={,aE,EbE,EcE};publicstaticvoidmain(Stringargs[]){Exampleex=newExample();ex.change(ex.str,ex.ch);System.out.print(ex.str+E/and");System,out.print(ex.ch);)publicvoidchange(Stringstr,charch[]){str=testok;ch[0]='g';))A!goodandabcB!goodandgbcC!testokandabcD!testokandgbcᫀB80ஹ☢ṹpublicclassPerson{staticintarr[]=newint[10];publicstaticvoidmain(Stringa[])(System.out.printin(arr[1]);))—ÐÑ345Ḅ஺A!D¥ا┯B!D¥45Ù©<ا┯C!ª0D!ªÚ

16ᫀc81ஹᑡṹÆ┯஺1)publicvoidmodify(){2)inti,j,k;3)i=100;4)while(i>0){5)j=i*2;6)System,out.printin("Thevalueofjis"+j);7)k=k+l;8)i—;9))10))Aline4Bline6Cline7Dline8ᫀC82ஹ☢ᐵ#AppletḄ0145Ḅ3oAAppletw◤⌕mainm1BAppletIJyjava.awt.Appletᡈjavax.swing.JAppletCApplet´µêᙢᦻíDAppletÓÔ^◤⌕D¥ᫀB83ஹᑡÓÔḄ©<ÕÖ3ointi=9;switch(i){default:System.out.printin("default");case0:System.out.printIn("zero");break;case1:System,out.printin("one");case2:System.out.printIn("two");

17AdefaultBdefault,zeroCerrordefaultclausenotdefinedDñᨵªÕÖᫀB84ஹᑡᐵ#foròó`whi1eòóḄ012_____345Ḅ஺AwhileòóYZḄôhÙforòówõYZBwhileòóᑨ÷ᩩí$ù3ÓÔÕÖÙforòóᑨ÷ᩩí$ù3úÓÔÕÖCû;òóüý᎛õ9þᣚD᪀ᫀA85ஹᑡᐵJavaApplication%JavaApplet'(Ḅ*+,-./Ḅ0oA123456'(᪀756128ᐹ56:ᑮḄ▲ᑴ75B1234756'(᪀56128ᐹ56:ᑮḄ▲ᑴ75C1234756'(᪀756128ᐹ56:ᑮḄ▲ᑴ@5D123456'(᪀56128ᐹ56:ᑮḄ▲ᑴ@5ᫀD86ஹᑡ⌱C⚗ḄEF0┯HḄ஺A//inta,b,cB/**inta,b,c*/C{inta,b,c)*/D/*inta,bStringa*/ᫀC87ஹJavaTUVᢝXYᦻ[\40஺A.gif_.jpegB.bmp_.jpgC.gif_.bmpD.tiff_.jpgᫀA88b⌕dᑏfghi12ḄJavaApplicationjkᒹm3n஺ArunBmainCstartDinitᫀB89ஹᎷsa=l,b=2,᡻2wx++a*b++Ḅz0஺A2B3C4D6

18ᫀC90ஹsᨵ☢gḄclassPerson{)classStudentextendsPerson{longid;intscore;Stringname;intgetScore(){returnscore;)}☢gḄᐵ0oAᒹmᐵBᐵCᐵὶᐵDᐵ6-ᨵwn┯ᫀB91ஹsᨵ☢Ḅg:classAA{voidShow(){System,out.printin("ᡃJava!");})classBBextendsAA{voidShow(){System,out.printin(“ᡃC++!”);}ᑣ(᡻2᝞wx¡¢zAAa=newAA();BB6b=newBB();Show();b.Show();AᡃJava!BᡃC++!ᡃC++!ᡃJava!CᡃJava!DᡃC++!ᡃJava!ᡃC++!ᫀA

1992ஹᙠJava6¤¥¦§⁚©ṹ«F᡻2Ḅ0஺Aᚗ®ᦈᘤB±²³Cd´ᘤDµ¶'³ᑴᫀB93ஹᑡ·-6./Ḅ0oAJavaw¸Ḅ᪗º»0¼ᑖᜧ¿ᑏBÀᦻ[Á%publicÁ75CÀᦻ[Áᐸ᡽ÄÁ.jarDÀᦻ[publicḄᦪT▲ᫀA94ஹᑡÆᔠnḄJava᪗º»0஺AcatB5booksC+staticD-3.14159ᫀA95ஹᙠJava6⊤Ëᣚ2»Ḅͧ»0஺A

20B\fC'n'D\ddᫀA96ஹᙠJava6ᵫJavad´ᘤÑÒÓᐭ6Õ◤ᙠ'(ᵨimportÓᐭḄᒹ0oAjava,appletBjava,awtCjava,utilDjava,langᫀD97ஹᙠJava6ᡠᨵḄ᪷0஺Ajava.lang.ObjectBjava.lang.ClassCjava,applet.AppletDjava.awt.FrameᫀA98ஹPanelÜÝḄÞßàᳮᘤ0஺AGridLayoutBBorderLayoutCFlowLayoutDCardLayoutᫀC

2199ஹᙠJava6äåæµçᦔzḄ340஺AᑁêB〉ìᘤCíîD5ïᫀC100ஹcharðḄñòô0______஺A27-27-1B0-216-1C-215-215-1D028TᫀB101ஹᓝøᑴᦪ16Ḅ16øᑴ⊤Ë\40_____oA0x10B0x16COxAD01ᫀAo103ஹᑡᐵJavaApplication%AppletḄùn6./Ḅ0Aᒹmmain஺3nBúû“appletviewer”üý᡻2Cúû"javac஻üýd´DÿᐭᙠHTMLᦻ᡻ᫀC104ஹApplet✌ᐜ!ᵨḄ$%&oAstopOBinit()Cstart()Ddestroy()ᫀB105ஹ67ᘤ9:;

221)publicclassTest{2)intm,n;3)publicTestO(}4)publicTest(inta){m=a;}5)publicstaticvoidmain(Stringargs[]){6)Testtl,t2;7)intj,k;8)j=O;k=O;9)tl=newTest();10)t2=newTest(j,k);11))12))Au3Bu5Cu6Du10ᫀD108ஹNᑡḄvw&ᙠxyz{|◞R~QRSI஻Heno!஻wᑏᙠNᑜ᦮wTUḄ&______opublicclassTestimplementsRunnable{publicstaticvoidmain(Stringargs[]){Testt=newTest();Threadtt=newThread(t);tt.start();}publicvoidrun(){for(;;){try{}catch(e){}System.out.printin("Hello!”);Asleep(1000)Bt.sleep(1000)InterruptedExceptionInterruptedException

23CThread,sleep(1000)DThread,sleep(1000)RuntimeExceptionInterruptedExceptionᫀD109ஹ▅NᑡZṹpublicclassPerson{intarr[]=newint[10];publicstaticvoidmain(Stringargs[]){System,out.println(arr[l]);TUḄ%&oA^_@¡¢┯aB^_TU@¡¢┯aC£¤¥¦D£¤¥§ᫀA110.ᵨᩭ©ᐭª«¬ḄAᡈᒹḄ&OAmainBimportCpublicclassDclassᫀBUKNᑡ²³TUḄ&oA´µ¶·¸¹ᢣ«RSA»BJava¼¥¶·number½Number¿ÀCJavaÁRḄÂÃ$Ä&‘7/஻DÇᦻpublicAÈÉᨵ0ᡈËSᫀA112ஹNᑡÌÍᔠ%ḄJava᪗HI&oA஻ABC஻B&5678C+rriwoDsalerᫀD113ஹNᑡZ⊤ᓝÒÓᑴ᦮ᦪḄ&஺

24A0123B1900CfaOOD0xa2ᫀDo114ஹᙠJava×ØᵨᡝÚ☢vwḄᒹ&oAjava,appletBjava,transactionCjava,utilDjava,awtᫀD115ஹ஻++஻ÛIḄÜÝᦪSᦪ&oA1SB2SC3SD4SᫀA116Þᙠswitch(expression)expressionḄᦪßA»àw&AdoubleBcharCbyteDshortᫀA117ஹNᑡ²³┯aḄ&oA᱄AàwâZãABãAwâZ᱄ACãAäå᱄AD᱄AᒹæãAᫀD118Þªçintèa=newint[100];ᙠNᑡé¤Ḅᦪêᐗì,í%Ḅ&______஺Aa[0]Ba[l]Ca[99]Da[100]ᫀDî᪆ð⚪ὃóḄ&ᦪêḄ«¬஺ᦪêᐗìAôÍᓫS¶·ÈÉöᵫᙢùú஺ᔜSᦪêᐗìüᵫýᐗìᙠᦪêḄÁRᙢU«þRÿ᪗஺⚪ᐗ᪗0,ᐗ⊤ᡂa[0]ᐗ᪗1,ᐗ⊤ᡂa[l]100ᐗ᪗99,ᐗ⊤ᡂa[99]஺Java!"ᦪ$ᐗ᪗%&0'()*&1'(ᦪ$Ḅ᪗,-ᙠ/0ᦪ$12/Ḅ345▲ᑁ஺a[100]89%101ᐗ:;<*=Ḅ஺>?@AJAVADᑖ/JavaGᓫᦪIJKLMN/ᦪ$OPQR

25119ஹUᘤJjava.awt.ContainerḄ᱄J%஺A!java.awt.WindowsB!java.awt.ComponentC!java.awt.FrameD!java.awt.PanelXᫀAB120ஹᑡ[ṹif(x>0){System.out.println(EEfirst'O;}elseif(x>-3){System.out.printin(/EsecondE");}else{System,out.println("third");}⌕^ᡭᓺPQR"second஻1xḄbce%஺A!x<=0fgx>-3B!x>0C!x>-3D!x<-3XᫀAA121>PanelOAppletḄhijklᳮᘤ%஺A!CardLayoutB!FlowLayoutC!BorderLayoutD!GridLayoutXᫀAB122ஹSwing᪀o,-pqᑮSwing⚔tUᘤuᐵḄ஺A!⌱⚗yzB!{⌱᪾ᑁC!ᑁU☢yzD!ᑖ◞yzXᫀAC123ஹᑡᐵ

26AA2BA3CA4DA6XᫀAB125ஹ:ᔣApplet¬⌴®ᦪᙠHTMLᦻoḄAPPLET᪗¶·ᵨPARAM⌱⚗஺ᙠAppletº»¼b®ᦪ1½·ᵨḄ=%஺AAgetParameter()BAgetDocumentBase()CAgetCodeBase()DAgetlmage()XᫀAA126.ʺᙠËÌᕜÎ⌕9ᔊ5ÐÑ᝱᝞ÔʺÕÖ%×ØÑ᝱ᑣÚᑮḄÑ᝱%oAAMÑ᝱BAÛÜÑ᝱CAMÑ᝱DAÝÞÑ᝱XᫀAC127.JavaàáâᜓäåḄæç%஺AAJ2MEBAJ2SECAJ2EEDAJDK5.0XᫀAA128ஹᙠJava!"ᐕì·ᵨᢣ┐ïðñḄJavaᱯឋ%஺AAàôBA᡻CAᏉöឋDA÷ᐰឋXᫀAD129ஹᑡ;

27break;case"Test":System.out.print("Test");break;ᐸEFGH஺AJavaBLanguageCTestDIJK┯ᫀD)ᐸEFGHoA0xa5B10C0x50DOxaaᫀB133.▅ᑡ"ṹpublicclassTest2005(publicstaticvoidmain(Stringargs[])(System,out.println((3>2)?4:5);})ᐸEFGH஺A2B3C4D5ᫀC134ஹᙠAppletTUVᦻXஹYZ[\]^B_`ᵨḄbc—Apaint()Binit()Cstart()Ddestroy()ᫀA135ஹefghᕜjTklḄm᝱oAopm᝱ஹEFm᝱qrsm᝱Bopm᝱ஹEFm᝱ஹtum᝱qrsm᝱Copm᝱ஹvEFm᝱ஹEFm᝱ஹtum᝱qrsm᝱Dopm᝱ஹvEFm᝱ஹEFm᝱ஹឮxm᝱qrsm᝱ᫀC136ஹThreadzT{EFef|Ḅbc஺Astart()Bresume()Cinit()Drun()

28ᫀD137ஹᑡᐵAppletḄcTB┯ḄoAApplet{EFBᐭᑮᐸ_ᵨf᝞ᘤTEFBvᙠᐰᶍḄᑴᑏᙢᦻCJavaTᢝᔣApplet¢⌴¤ᦪDAppletḄ¦z⌕¨©ªjava,applet.AppletzḄ¬zᫀC138ஹᙠJavaTB®ᦪ¯°±²Ḅᢈ´஺AODBCBJDBCCᦪ¯°ᔆ¶·¸fDᦪ¯°ᔆ¶Ḅ±²¹ºᫀB139ஹᑡh⚪TB┯Ḅ஺AJavaIf^B⌕½_¾¿ÀᵨÁᐳÿBJavaIf^B⌕½_¾¿ÄᵨÁᐳÿCJavaIf^B⌕½_¾¿ᵨÁᐳÿDJavaIf^B⌕½_¾¿`ᵨÅᨵÿᫀA140ஹÇᱯÉÊᓫÌÍÊᓫBᑣᱯÉÊᓫzqÊᓫzḄᐵÏA`ᵨᐵÏBᒹÑᐵÏCÒÓᐵÏDÔᐵÏᫀC141>ÇᦪÕa¨©ªintÖ×a=newint[3][4],ᑣa஺AÌØᦪÕBÙØᦪÕCÚØᦪÕDÛØᦪÕᫀB142ஹJavaÜ`ᵨḄXÝṹÞ஺AASCIIBBCDCDCBDUnicodeᫀD143.EFJavaf◤⌕ḄâᐹäᡠᙠḄæç஺AJDKḄbinæçBJDKḄdemoæçCJDKḄlibæçDJDKḄjreæçᫀA144ஹᑡᐵJavaÜᱯéḄêëTB┯Ḅ______஺AJava☢ᔣîfḄIfÜBJavaᢝᔜðñòóCJavaôõöḄIfÜDJavaᢝÀefᫀA

29145ஹJavaḄ᪶øᒹTBùúIf_ᵨḄûzḄᒹ஺A!java,langB!java,utilC!java,appletD!java,rmiᫀA146ஹᑡᐵJavaüimportý¨ḄêëTB┯ḄA!ᙠJavafTimportvᨵÀþB!ᙠJavafTimportvÿᨵC!ᙠJavaimportᨵ"D!ᙠJavaimportᐭᙠᡠᨵᫀC147ஹ▅☢importjava.io.*;publicclassTypeTransition(publicstaticvoidmain(Stringargs[]){chara='h';inti=100;intj=97;intaa=a+i;System,out.printin("aa="+aa);charbb=(char)j;System,out.println("bb="+bb);})᝞Ḅ!"#$bb=a,%&!#Ḅ'oA!aa=IB!aa=204C!aa=vD!aa=156ᫀB148ஹ▅☢publicclassOperatorsAndExpressions{voidequalsMethodl(){Stringsl=newString(zEhowareyou");Strings2=newString("howareyou");System,out.printin(sl==s2);}publicstaticvoidmain(Stringargs[]){OperatorsAndExpressionsOperAndExp=newOperatorsAndExpressions();

30//ᵨ+,ᔠ.ᦪ0Ḅ"=="234OperAndExp.equalsMethodl();})2#'_____஺A!==B!trueC!falseD!equalᫀC149ஹ▅☢8ṹif(x-0){System,out.printin(";<");}elseif(x>-3){System.out.printin("><")?}else{System,out.printin(஻A<”)L}C⌕EᡭᓺH4I஻A<஻JᑣLMXḄNOQ'OA!x=0&x<=-3B!x>0C!x>-3D!x<=-3ᫀD150ஹᑡᐵ+᪀⌼VWḄXYJ┯[Ḅ'oA!Java\]᪀⌼VW^_^`aB!Java\]᪀⌼VWbᨵcdOJefᵨvoidghC!Java\]᪀⌼VWfijklD!Java\]᪀⌼VWmnopnewqrsᵨᫀC151ஹ▅☢importjavax.swing.JOptionPane;publicclassComparison{publicstaticvoidmain(Stringargs[]){StringfirstNumber,஻ᵨᡝᐭ!1uᦪ0LMsecondNumber,஻ᵨᡝᐭ!2uᦪ0LMresult;஻LMintnumber1,஻ᵨ+vwḄ!1uᦪnumber2;஻ᵨ+vwḄ!2uᦪ஻ᵨᡝᐭ!1uᦪ0ḄH4IfirstNumber=JOptionPane.showInputDialog("ᐭ!1u᦮ᦪ”)L஻ᵨᡝᐭ!2uᦪ0ḄH4IsecondNumber=JOptionPane.showInputDialog("ᐭ!2u᦮ᦪ:஻)?

31//zH4I{ᣚ$᦮ᦪ.numberkInteger,parselnt(firstNumber);number2=Integer.parselnt(secondNumber);஻}~ᓄLM//vwuᦪ0if(numberl==number2)result+=numberl+EE==E/+number2;if(numberl!=number2)result+=numberl+”!="+number2;if(numberl

32E/+numberl+//number2)result=result+"

33'+numberl+”>"+number2;if(numberl<=number2)result=result+"

34'+numberl+“ீ="+number2;if(numberl>=number2)result=result+"

35"+numberl+">="+number2;஻JOptionPane.showMessageDialog(null,result,"vw"JJOptionPane.INFORMATION_MESSAGE);System,exit(0);))$n2#ᑮᔠᳮḄJ}~ᓄLM(ᑜᜐ)'OA!result=""B!result=nullC!result=numberlD!result=number2ᫀA152ஹ▅☢publicclassIncrement{publicstaticvoidmain(Stringargs[]){intc;c=5;

36System,out.println(c);System.out.println(c++);System.out.println(c);2#'A5B:5C:6D:665766676ᫀB153ஹᑡXYJ┯[Ḅ'oAJavaApplication_Appletᡠᵨ¬®¯`aBo°±²JavaApplicationmnᨵumain஺VWCJavaAppletᨵHTMLᦻ¹ºn2#DJavaAppletḄ.classᦻ¹iᵨjava®¯2#ᫀA154ஹ▅☢1publicclassTryextendsThread{2publicstaticvoidmain(Stringargs[]){3Tryt=newTry();4t.start();5)67publicvoidrun(intj){8inti=0;9while(i<5){10System,out.println("ËÌᡂÎÏ”)?11i++;12}13)14}Ð⌕Eᡭᓺ5#஻ËÌᡂÎÏ஻JᦋḄÒ#8ṹJºnÓᡂ஺ÔÕḄÖᦋ'_____oAz!1#ḄextendsThreadᦋ$implementsRunnableBz!3#ḄnewTry()ᦋ$newThread()

37C!z!4#t.start()ᦋ$start(t)D!z!7#Ḅpublicvoidrun(intj)ᦋ$publicvoidrun()ᫀD155ஹØuJavaÙᵨ$஺A!AppletᡈJAppletḄÛB!JFrameḄÛC!FrameḄÛD!WindowḄÛᫀA156ஹᙠAppletḄinit()VWÜsᵨÝJÞᩭᨬᐜÜsᵨḄVW'________________OA!run()B!start()C!stop()D!destroy()ᫀB157ஹJava\_C++\`vJᨬâḄᱯä'஺A!☢ᔣæçB!èឋnC!êëìD!ᨵíᫀC158ஹᙠᑡJava\ḄᒹJïðñòó☢᪀¹Ḅᒹ'஺A!java,ioB!javax.swingC!java,netD!java,rmiᫀB159ஹô▅☢importjava.io.*;publicclassTypeTransition{publicstaticvoidmain(Stringargs[]){chara-a;inti=100;longy=456L;intaa=a+i;longyy=y-aa;System,out.print("aa="+aa);System,out.print("yy="+yy);))2#'஺A!aa=197yy=259B!aa=177yy=259C!aa=543yy=288D!aa=197yy=333ᫀApublicclassOperatorsAndExpressions{

38voidresidual(){inti=100,j=30;floatm=563.5f,n=4.Of;System,out.println(i%j);System,out.println(m%n);)publicstaticvoidmain(Stringargs[]){OperatorsAndExpressionsOperAndExp=newOperatorsAndExpressions();//Nù234ᙠ᦮ᦪúûäᦪḄᵨOperAndExp.residual();}}2#'OA10B20C10D203.52.54.53.5ᫀA161ஹô▅☢publicclassForLoopStatement(publicstaticvoidmain(String[]args){inti,j;for(i=l;i<5;i++){//iýþfor(j=l;j<=i;j++)஻jýþSystem,out.print(i+஻X஻+j+஻=஻+i*j+஻஻)System,out.println();ᡂi!j᡻#Ḅ%ᦪᑖ()A+4,10B+8,9C+9,8D+10,104ᫀ+A162ஹ9▅;<☢publicclassExampleStringBuffer(publicstaticvoidmain(String[]args){StringBuffersb=newStringBuffer("test");System.out.printin("buffer="+sb);System.out.printin(length=/+sb.length());}}

39O#PQRᙠ஻length=஻TUḄV)oA+10B+4C+20D+304ᫀ+B163ஹ<ᑡYZR[\Ḅ)oA+]^_ᙠᭆab)cdᐵḄB+fg]hᒹjkg_C+fg_hᒹjkg]D+JavaRḄ]mᨵoᐜq4ᫀ+C164ஹ9▅;<☢publicclassThreadTest{publicstaticvoidmain(Stringargs[]){Threadtl=newThread(newHelioO);Threadt2=newThread(newHelioO);tl.start();t2.start();})classHelloimplementsRunnable{inti;publicvoidrun(){while(true){System.out.printin("Heilo'+i++);if(i==5)break;yz{]|ᵨḄ~)oA+ThreadB+RunnableC+tl.start()D+t2.start()4ᫀ+B165ஹPanelḄᳮᘤ)஺A+BorderLayoutB+CardLayoutC+FlowLayoutD+GridBagLayout4ᫀ+C167ஹᙢAppletᐰ▲ᑴR[\Ḅ)A+Appleth¡ᙢ¢ᡈ~

40B+Appleth;ஹᑏᙢ¥¦Ḅᦻ¨©ªC+ApplethᔣApplet¬᜜Ḅ®¯{°±²³D+Appletc´O#®¯ᙢh᡻#4ᫀ+D168ஹ<ᑡµ¶·¸¹R[\º»¼Ḅ)A+BOOLEANcanceled=false;B+booleancanceled=false;C+booleanCANCELED=falseD+booleancanceled=FALSE;4ᫀ+B169ஹᦪ¿RᔜgᐗÂḄᦪÃÄ)oA+dÅḄB+cÅḄC+ÆᑖdÅḄD+®ÇḄ4ᫀ+A170ஹ▅;<☢publicclassTesti{publicstaticvoidmain(String[]args){System,out.printIn(34+56-6);System,out.printin(26*2-3);System,out.printin(3*4/2);System,out.printin(5/2);O#PQ)—_oA+84B:90C:84D:684925234966121422.522.54ᫀ+A171ஹ▅;<☢publicclassConcatTest(publicstaticvoidmain(String[]args){Stringstrl="abc";Stringstr2="ABC";Stringstr3=strl.concat(str2);System.out.printin(str3);

41ḄO#PQ)OA+abcB+ABCC+abcABCD+ABCabc4ᫀ+C172ஹ<ᑡO¦ÌRÍÎᐵ©O¦ÌḄ)oA+==B+=C++=D+-=4ᫀ+A173,<ᑡÏÐR᡻#ÑÒÓ´ḄÏÐ)oA+forÏÐB+whileÏÐC+continueÏÐD+switchÏÐ4ᫀ+C174ஹ<ᑡ〉ÕᘤRcÍÎÖ¨〉ÕᘤḄ)oA+MouseAdapterB+KeyAdapterC+ComponentAdapterD+FrameAdapter4ᫀ+D175ஹ▅;<☢publicclassTest2{publicstaticvoidmain(Stringargs[]){inta=10,b=4,c=20,d=6;System,out.printIn(a++*b+c*-d);O#ḄPQ)______oA+144B+160C+140D+1644ᫀ+C176ஹ▅;<☢publicclassTest3{publicstaticvoidmain(Stringargs[]){intx=3,y=4,z=5;Strings="xyz";System.out.printin(s+x+y+z);)}O#ḄPQ)OA+xyzl2B+xyz345C+xyzxyzD+12xyz

424ᫀ+B177ஹ▅;<☢publicclassTest4{publicstaticvoidmain(Stringargs[]){inti=10,j=3;floatm=213.5f,n=4.Of;System.out.printin(i%j);System,out.printIn(m%n);))O#ḄPQ)OA+1.0!1.5B+1!1.5C+1.0!2.5D+1!2.54ᫀ+B178ஹ▅;<☢importjava.io.*;publicclassByteStreamTest{publiestaticvoidmain(String[]a){int[]myArray={10,20,30,40);try(DataOutputStreamdos=newDataOutputStream(new(஻ints.dat"));for(inti=0;i

43179ஹ᝞Q⌕ᙠAppletRèéᱯ¸Ḅᦻëஹìíîïðhñᙠᵨᡝ¸¹ḄAppletRóᑏḄ~)oA+paint()B+update()C+drawString()D+drawLine()4ᫀ+A180ஹ᝞Qᵨᡝ¸¹ḄAppletRmᨵinit()~ᑣy஺A+õö¸¹fgmain()~B+÷øùúûC+hñøùúûüO#ýþU┯DᫀD181ஹ᝞ᵨThreadt=newTest஺'()*+,-.ᑣ0ᑡ234Ḅ6oATest9+:⌕<=RunnableBCBTest9+:6Thread9ḄE9CTest9+:6RunnableḄE9DTest9+:6GHThread9<=RunnableBCᫀD182ஹ0ᑡJJavaᱯឋḄ23O┯QḄ6஺AᙠᑏJavaE9TUᵫᙢXYZ[\]^ឋBJavaḄApplet⌕`.✌ᐜ)*JFrameeCCJava'fᵨghᘤ᡻k⁚ṹDJavaOḄ9+noᨵUqḄ^ឋ][\ᫀB183ஹ0ᑡJJavas.tu᪀Ḅ23O┯QḄ6஺Aimport'(xyᙠᡠᨵ9:{|}BBC:{ᐕ0ᡈ,CJavaApplicationOḄpublicclass9:{ᐕ0ᡈ,DPackage'(ᐕ0ᡈ1,ᫀC184ஹ0ᑡ:{O4Ḅ6oAlong1=123LBlong1=3.14156fCinti="k"Ddoubled=l.55989E2fᫀA185ஹ0ᑡJava⊤19/3(int)71.7-2*37%3

44(double)1/8+3u6OA6.3B:6C:6.4D:66463676521212.53.1252.53.125ᫀD186ஹswitch'(O⊤(expression)Ḅ¡¢ᐕᵨḄ9£6AbyteBintCbooleanDcharᫀC187ஹ0ᑡ'(¥ᦪ§¨¡©¢ᵨforª«Ḅ6oAmyArray{[1]="One";[2]="Two";[3]="Three”;}BStrings[5]=newStringLJiZero,One,Two,Three,Four);CStrings[]=newStringLJ\Zero,One,Two,Ihree,rour);DStrings[]=newStringLJ=(Zero,One,Two,Three,Four);ᫀC188ஹ0ᑡ'(O4Ḅ6oASystem,out.println(l+1');Binti=2+'2";CStrings="on"+'one';Dbyteb=257;ᫀA189ஹ0ᑡᐵºkO⊤»Ḅ6oAfinalBdefaultCprivateDtransientᫀA190ஹᙠJava'fO¼½¾ᑁÀᑖÂḄÃ6஺AnewBinstanceofC[]D()ᫀA191ஹ▅Å0☢`ÇᦪḄ.timportjava.lang.Math.*;publicclassMorePrimesTest{publicstaticvoidmain(String[]args){long[]primes=newlong[20];primes[0]=2L;

45primes[1]=3L;longnumber=5L;outer:for(intcount=2;count

46t.start();publicvoidrun(){System,out.println("Howareyou.");))ᙠ.t0ᑜ-ᜐÌᐭ4⌱⚗6OA!implementsThreadB!extendsRunnableC!implementsRunnableD!extendsThreadᫀD195ஹ0ᑡᐵóAppletOYõö÷Ḅø\┯QḄ6oA!ᵨApplet9Ḅgetlmage()[\ùúö÷JÔB!.tᕒxyU:{ùúö÷ûü»ö÷Ḅ9][\C!ö÷ᵫ+,java.Image9ḄJÔᩭ⊤»DᵨGraphics9ḄdrawImage()[\ü»ö÷ᫀBÛ᪆Ý⚪ὃàḄ6AppletḄþÿᢝ஺ᙠAppletᨵḄᢝ⌕ᒹஹ஺ᙠᵫ!java.Image"Ḅ#$ᩭ⊤஺ᙠApplet'()ᵨApplet"+,Ḅgetlmage()-./0ᒹ12Ḅ!Image"Ḅ#$஺)ᵨḄ3Graphics"Ḅdrawlmage()-.Graphics"45647drawlmage()-.89:;?᝞ABᐰ'(DEFᩭ;

476ஹW☢f!-.gsᙠtuv᎛xtu[yᵨmALnotify()BLwait()CLnotifyAll()DLsleep()ELyieldOFLsynchronized(this)bᫀLDEFIJKLJAVAMᑖ/⌱⚪7ஹ᪀⌼BufferedlnputStreamḄᔠ〉ᦪ3f!mALBufferedlnputStreamBLBufferedOutputStreamCLFilelnputStreamDLFileOuterStreamELFilebᫀLACIJKLJAVAMᑖ/⌱⚪8ஹWᑡ.¡¢Ḅ3oALjavA.lang.Clonable3"BLjavA.lang.Runnable3©ªCLDouble#$ᙠjavA.langᒹDLDoublea=l.03¡¢Ḅjava®bᫀLBCIJKLJAVAMᑖ/⌱⚪9ஹWᑡf°⊤±²3¡¢ḄmALdoublea=l.0;BLDoublea=newDouble(1.0);CLbytea=340;DLBytea=120;bᫀLABIJKLJAVAMᑖ/⌱⚪10ஹ45!"`¸"MyClass.java஻Ḅ"DE2"gx!¼Ḅᡠᨵ"¾¿ÀÁ2"Ḅ¡¢ÂS¸______oALprivateclassMyClassextendsObjectBLclassMyClassextendsObjectCLpublicclassMyClassDLpublicclassMyClassextendsObjectbᫀLCDIJKLJAVAMᑖ/⌱⚪11ஹᢣFWᑡf!-.Æ-.publicvoidadd(inta){}¸ᔠᳮḄÊ(-.mALpublicintadd(inta)BLpublicvoidadd(longa)CLpublicvoidadd(inta,intb)DLpublicvoidadd(floata)bᫀLCDIJKLJAVAMᑖ/⌱⚪12ஹ᝞AWᑡḄ-.Ì¡ÍklᙠÎᑴÏÐÑÒÁmpublicvoidexample(){try(unsafe();System.out.printin("Testi");

48catch(SafeExceptione){System.out.printin("Test2");}finally{System.out.printin("Test3");}System.out.println("Test4");)ALTest1BLTest2CLTest3DLTest4bᫀLACDIJKLJAVAMᑖ/⌱⚪13ஹWᑡf°ÔÕgsÖ×ØÙ[ḄklmALÚF!Û᜜vBLØ2[yᵨsleep஺-.vCLØij!Ý[vDLØ!ÞᐜàáḄ[âᐭäåæ᝱vbᫀLABDIJKLJAVAMᑖ/⌱⚪èéêᡠᨵëì⚪1ஹí)ᵨNetBeansᡭðὃòᦻôᜳWḄ⚗÷Javaø2⚗÷ḄùᦻôJavaø,java3úB᦮Ḅíᙠüýl"஻*********Foiind*********"Fl®ḄWᑜ[ᙢᐭᑁᯠᑤ◀ᑜᑤ◀ᡈᦋᐸᨵᑁ஺!"ᦋ#$ᨵᦻ&Ḅᦻ&()*+,஺-⚪Ḅ⌕0123ᡂ56780"9ᫀ஺8;<=2al=169nl=855fl=829.6dl=959.1519754653931O᪆.2-⚪ὃRḄ1JavaḄUᓫᦪXYZ஺1)᦮ZᦪXYZḄ]^᦮ZᦪXᑖ᦮Z`ab᦮Z#a஺᦮Z`ac᦮Z#adᑖ=byte,short,intblong4pYZ஺qrlongYZ᦮Z`asᑏ⊤v⌕ᙠᦪx☢zLᡈ1஺|}~8(=),!ᵨᑴYZᣚ#aYZḄ]⌕rᡈrᦪXYZḄ஺ᦑ-⚪“n=1024L;஻Ḅ2long஺2)ᦪXYZḄᣚJavaḄᔜpᦪXYZpᣚ2ᣚcᑴᣚ஺YZᣚᐕ¡ᙠ}~b¢ᵫ¤¥¦§ᢥ]Ḅ©ᐜ«63ᡂ஺¬®¯°ᦪ±ḄᦪXYZᔣ°ᦪ³ḄᦪXYZᣚ஺᝞<⌕

49µ¶ᩭ¯°ᦪ³ḄᦪXYZᔣ°ᦪ±ḄᦪXYZᣚ®ᵨᑴᣚ¬1ᵫ¤ᑏ56ὅ¹]¤¥¦§º᡻஺YZᣚ1ᵫᢥ©ᐜᐵ¦½¾ᦪXᣚᡂᦪX¿]Ḅ©ᐜÀ612byte,short,charfintflongffloatfdoubleᵫr"doubledl=fl/al+d;/,ᦑ“d=954.2431;"Ḅ:doubleo-⚪ᐹÈ56᝞2importjava.io.*;publicclassJava1(-publicstaticvoidmain(Stringargs[])(chara='r";byteb=8;inti=55;//*********Found********longn=1024L;஻]^n#a1long᦮Zfloatf=103.7f;//*********Found********doubled=954,2431;intal=a+i;longnl=n-al;floatfl=b*f;doubledl=f1/al+d;஻alᣚ=floatYZ8fl/al"floatYZḄ;<Óᣚ=doubleYZ8System,out.println("al="+al);System,out.println("nl="+nl);System.out.println("fl="+fl);System.out.println("dl="+dl);})ÕÖ×2JAVAÚᑖ/Û-ÜÝ2ஹᵨNetBeansᡭâὃãᦻ&ᜳḄ⚗+Java_2,ç⚗+Ḅ

50è56ᦻ&Java_2.java1!3᦮Ḅᙠ"஻*********F()und*********"Ḅᑜᙢᐭᑁᯠᑤ◀ᑜᑤ◀ᡈᦋᐸᨵᑁ஺!"ᦋ#$ᨵᦻ&Ḅᦻ&()*+,஺-⚪Ḅ⌕012ê᦮ᦪnḄ▤ìrᡠᨵ1ᑮn᦮ᦪḄìïᓽn!=l*2*3*…*n஺56ñãê0ᑮ10Ḅòó᦮ᦪᯠ¢7ᡭᓺ¬Ḅ▤ì;<஺O᪆2-⚪ὃRḄ1do-while஺ᵫrn!=l*2*3*3*n,ᡠõöᵨ÷øᩭ0"▤ìḄ;<஺ᙠ-⚪ùúdo,ᦑᵨdo-while÷øûü=-⚪ᙠ]^#aᵨfᩭý▤ìḄ;<i⊤v÷ø#a஺ᦑ-⚪ᡠ÷øÈ=2f=f*ibᑨÿᩩwhile(n>=i)஺ᐹ᝞importjava.util.Random;publicclassJava2(-publicstaticvoidmain(Stringargs[]){Randomrandom=newRandom();floatp=random.nextFloat();஻0.01.0Ḅᦪintn=Math,round(10*p);஻᪀⌼10ᑁḄ᦮ᦪlongf=1;஻!▤#Ḅ$%inti=1;஻&'()//*********Found********do{f=f*iL஻ᙠ+,i-.ᩩḄ/0123456789:=:1=>?ᑏ(A,᡻C6DEFGHᑨJᩩ)i++L//*********Found********}while(n>=i);஻ᑨJᩩ,MᑮnீiPSystem,out.println(n+zE!="+f);QRJAVASᑖ/VᓫXᵨ3ஹ[\ᵨNetBeansᡭ^ὃᦻᜳḄ⚗cJava_2,d⚗ceḄfᦻJava_2.javagHh᦮Ḅ5[ᙠijC

51"஻*********Found*********"CDEḄᑜlᙢn?ᐭpqᑁr5ᯠtᑤ◀ᑜl5[wᑤ◀ijCᡈᦋzᐸ|}ᨵDEᑁr஺!FHᦋ(ᨵᦻḄᦻ!c஺⚪Ḅ⌕3g}Q᦮ᦪ5⌕3ᐸ5C4ᑡḄ>஺>᝞11112222333344445555᪆⚪ὃḄgfor&'Ḅᝅ஺⚪✌ᐜ⌕ᳮᦪḄ5᝞intaMatrix={{1,1,1,1),[2,2,2,2},{3,3,3,3},{4,4,4,4},{5,5,5,5}};⊤¢dᦪᵫ5ᦪaMatrix[0]ஹaMatrix[1]>aMatrix[2]>aMatrix[3]>aMatrix[4]ᡂ5+ᦪ¥ᨵ4ᐗ§஺ᐸ,⌕i¨⚪Ḅ>Ḅ©ᑴ5«⚪c⌕35C4ᑡḄ>59¬System.out.printin()ᩭ©ᑴC஺println()gᵨ¯ᣚC5±print஺²ᵨ¯³´µ¶5³´µ¶Ḅ>ᵫ·¸ᑁḄ>©ᑴ஺᝞⚪"System,out.print(aMatrix[i][j]+"");”⊤¢µ¶º»^7஺ᨬt5&'Ḅᝅ¾⚪5⚪¬aMatrix.length©ᑴ᜜Àfor&'Ḅ&',ᦪ5ᓽ©ᑴ5CÂᑁÀfor&'Ḅᩩj

52for(j=0;jᡭᓺïiᡭᓺᑁrðñ7òóôõö»2÷øùúὃûi¨ᙠḄµ¶üeHýᨵ7஺᪆⚪ὃḄg>஺✌ᐜþJavaeᑮÿᵨSystem.out.println;᝞System.out.printin"”ᑣ⊤ᙠ!"#$%஺ᐸ()*+,-.Ḅᵨ0஺+,-.123ᩨ\6ᜮ᝞஻

53஻⊤ᣚ:.஺ᐹ<=>᝞?%publicclassJava1publicstaticvoidmain(Stringargs[])//*********Found********System.out.printin("

54O

55PQ

56RST

57UVὃX”);

58YZ[%JAVA\ᑖ/^_`a5ஹcdᵨNetBeansᡭ6ὃfᦻhᜳ?Ḅ⚗kJava_2,l⚗kmḄn=>ᦻhJava_2.javaopq᦮Ḅ,tcᙠuv:"஻*********Found*********"?t:Ḅ?ᑜxᙢz{ᐭ}~ᑁᯠᑤ◀?ᑜxcᑤ◀uv:ᡈᦋᐸᨵᑁ஺pᦋᨵᦻhḄᦻhk஺_⚪Ḅ⌕o%=>mHandleButtonoPleasepressme!ᢥḄᘤ஺qᡂ=>dᙠ[Pleasepressme!ᢥᙠ¡¢£¤mᡭᓺ"Thebuttonispressed!z/,¦§ᙠ[£¤¨"zḄᐵª£¤ᢥ«¬ᐵª£¤஺᪆•%_⚪°⌕ὃ±Ḅoᘤ஺JavaḄ²³ᵨᡝµ☢o·h¸Ḅ¦§ᵫᔜ»ᔜ᪵Ḅᘤ(Listener)½¾ᣓᣍᔜ»·h஺ÁÂᵫÃhÄÅḄtÆaddXXXXXListenerḄz0ᩭqᡂÈQᘤ஺_⚪mᡃÊËR)tÆ£¤(publicclassJava_2extendsFrame{...),¦§ÌÍÆ£¤ÈQ)tÆ£¤ᘤ(addWindowListener(newWindowAdapter()...)஺ÎᡃÊÈQḄÍÆ£¤ᘤ°⌕)£¤ᐵª(publicvoidwindowClosing(WindowEvente)...)·h஺ᙠ£¤ᐵª·hmᡃÊ⌨$)᦮ÆÐᵨ=>(System.exit(O);)LÑ᜜ᡃÊÈQ)ᢥᘤ(addActionListener(newHandleButton());),°⌕ÓÔ)!#$System,out.printin(/zThebuttonispressed!;0ᐹ<=>᝞?%importjava.awt.*;importjava.awt.event.*;publicclassJava_2extendsFrame{publicJava_2(Strings){஻ÕᑏJava_2Ḅ᪀⌼Ùᦪ¦Ûᵨ᱄FrameḄ᪀⌼Ùᦪsuper(s);}publicstaticvoidmain(Stringargs[]){Java2fr=newJava_2("Testing");Buttonb=newButton("Pleasepressme!");//*********Found********

59b.addActionListener(newHandleButtonO);fr.add(b);fr.pack();//*********Found********fr.addWindowListener(newWindowAdapter(){publicvoidwindowClosing(WindowEvente){System,exit(0);)})ìfr.setVisible(true);}}classHandleButtonimplementsActionListener{publicvoidactionPerformed(ActionEvente){System.out.printin(""Thebuttonispressed!/z);})YZ[%JAVA\ᑖ/óᓫÐᵨ6ஹcdᵨNetBeansᡭ6ὃfᦻhᜳ?Ḅ⚗kJava÷l⚗kmḄn=>ᦻhJava÷,javaùJava÷,htmlúopq᦮Ḅcᙠuv:"஻*********Fourid*********"?t:Ḅ?ᑜxᙢz{ᐭ}~ᑁᯠᑤ◀?ᑜxcᑤ◀uv:ᡈᦋᐸᨵᑁ஺pᦋᨵᦻhḄᦻhk஺_⚪Ḅ⌕o%qᡂAppletḄ=>ùHTMLᦻhd=>#$üý᝞?%᪆%_⚪ὃ±ḄoAppletḄdᵨ஺ᙠHTþᦻ᫏Applet᪗ᢣJavaᙠApplet᪗codeᵨᩭᢣJavaᦻcodebaseᵨᩭᢣJavaḄ"#஺ᙠHTMLᦻ᫏param᪗ᔣJava-⌴/ᦪ஺ᙠparam

60᪗name2ឋᵨᩭᢣJavaḄ/ᦪ4valueᵨᩭᢣ/ᦪ5஺6᜜8⚪:ὃ<=Graphics>Ḅ?ᵨ஺Graphics>@A=BCDᙊF᪵ḄHᓫJK>LḄMN6᜜O@A=PQᦻ8ḄMN஺R=Sᑴ⌕VᨵXYᨵᦔḄ[\]᛻(ᵫGraphics>ḄXYab⊤Q)஺eRGraphics>fXYghḄi>jklmnoabᓄ஺XYᐹrḄaboXYstuvwᯠyzRXY/ᦪ-⌴{ᑮXYsḄupdate()Dpaint()MN஺F}YMNzRAWTᑁᕜSᑴḄXsᑖoᵨ஺Graphics>@A=YᙠsD[hSᑴᦻ8ḄMN஺8⚪ᡠḄfdrawString()MN஺voiddrawString(Stringstr,intx,inty)drawString()MNᵨXYᒹ⌕oPQᦻ8Ḅab}Yᢣᦻ8ᙶ᪗Ḅ᦮L5zR/ᦪ஺publicvoidpaint(Graphicsg)(g.drawString("/Javaὃ!”25,25);)☢ᑡḄṹPQ=ᙠpaint()MNᑁᵨdrawString()MN஺FYbṹᙠpaint()MNḄsPQ஻/Javaὃ!஻xDyᙶ᪗ᢣ¢ᦻ8᪾¤¥¦§¨஺Applet᝞¥ªimportjavax.swing.JApplet;//importclassJAppletimportjava.awt.Graphics;//importclassGraphicspublicclassJava_lextendsJApplet(//*********Found********publicvoidpaint(Graphicsg)஻«ᑏJAppletḄMNpaint(g.drawString("/Javaὃ!”25,25);஻ᵨGraphics>ḄdrawStringMN®HTMLṹ᝞¥:

61°±²ªJAVAsᑖ/i8´z7ஹµᵨNetBeansᡭὃ·ᦻᜳ¥Ḅ⚗ºJava_2,»⚗ºḄ¼ᦻJava_2.javafk½᦮Ḅ]µᙠ¿ÀÁ"஻*********Fc)und*********"¥XÁÂÃḄ¥ᑜCᙢMÆᐭÈÉᑁÊᯠyᑤ◀¥ᑜCµÍᑤ◀¿ÀÁᡈᦋÐᐸÒÓᨵÂÃᑁÊ஺ÔÕkÖᦋ×ØᨵᦻḄᦻ4ºÙ஺8⚪Ḅ⌕Vfªsource,txtᦻḄᦻᐭ/®ÚÛᑴᑮ6XYdest.txtᦻ஺Ü᪆ª8⚪ὃ<Ḅfᐭ®Ú஺FilelnputStream⊤QÞßàᦻ8ᦻFilelnputStreamßàᦻḄXY⁚ஹãY⁚ᡈ᦮Yᦻ஺RXYᦻᡭᐭÚFilelnputStream,ä◤ᦻ4ᡈᦻæh-⌴{᪀⌼éᦪ஺1)ᦻ4-⌴{᪀⌼éᦪḄMN᝞¥ªFilelnputStreammyFileStream=newFilelnputStream("/etc/motd");2)ᦻæh-⌴{᪀⌼éᦪḄMN᝞¥ªFilemyFile=newFile('/etc/motd");FilelnputStreammyFileStream=newFilelnputStream(myFile);8⚪ᵨḄfᦻæh-⌴{᪀⌼éᦪḄMN஺ᐹr᝞¥ªimportjava.io.*;publicclassJava_2{publicstaticvoidmain(String[]args)throwslOException(FileinputFile;FileoutputFile;FilelnputStreamin;FileOutputStreamout;intc;

62inputFile=newFile("source,txt");஻tuᦻæhinputFileoutputFile=newFile("dest.txt");//tuᦻæhoutputFilein=newFilelnputStream(inputFile);஻ᦻæhinputFile-⌴{᪀⌼éᦪ//*********Found********out=newFileOutputStream(outputFile);஻ᦻæhoutputFile-⌴{᪀⌼éᦪwhile((c=in.read())!=-1)//*********Found********out.write(c);஻ᵨFileOutputStreamḄwriteMNÞ®ᦻin.close();out.close();})°±²ªJAVAsᑖ/Hᓫ?ᵨ8ஹµᵨNetBeansᡭὃ·ᦻᜳ¥Ḅ⚗ºJava_2,⚗ḄᦻJava_2.javaJava_2.html᦮Ḅᙠ!"஻஻*********Fourid*********",-"./Ḅ,ᑜ1ᙢ34ᐭ67ᑁ9ᯠ;ᑤ◀,ᑜ1>ᑤ◀!"ᡈᦋAᐸCDᨵ./ᑁ9஺GHIJᦋKLᨵᦻḄᦻMNGOP஺Q⚪Ḅ⌕TUᙠJava_2.htmlḄApplet᪗Z[\]^ᦪstringscde]fghḄijklAppletJava_2mnopqijk஺ᡂAppletHTMLᦻwxyz{|஺}᪆UQ⚪ὃḄAppletḄᵨ஺ᙠHTᦻ᫏Applet᪗ᢣ[JavaᙠApplet᪗codeᵨᩭᢣ[Javaᦻcodebaseᵨᩭᢣ[JavaGOḄ஺ᙠHTMLᦻ᫏param᪗ᔣJava⌴^ᦪ஺ᙠparam᪗nameឋᵨᩭᢣ[JavaḄ^ᦪMvalueᵨᩭᢣ[^ᦪl஺ᵫ^ᦪstringsḄl"Howareyou!”,ᡠᙠீparamname="strings"="Howareyou!”¢h4yvalueApplet

63£¤^ᦪḄ./S=getParameter();h4yghḄ^ᦪMstringsoApplet᝞,Uimportjava.awt.*;importjava,applet.*;publicclassJava2extendsApplet1-Strings;publicvoidinit(){//*********Found********s=getParameter("strings");}publicvoidpaint(Graphicsg){g.drawString(s,20,20);})HT᝞,U¹º»UJAVA½ᑖ/¿ᓫhᵨ9ஹᵨNetBeansᡭÅὃÆᦻᜳ,Ḅ⚗JavaÈ⚗ḄᦻJavaÈ,java᦮ḄÉᙠ!""஻*********Found*********''5-"./Ḅ,ᑜ1ᙢ34ᐭ67ᑁ9ᯠ;ᑤ◀,ᑜ1>ᑤ◀!"ᡈᦋAᐸCDᨵ./ᑁ9஺GHIJᦋKLᨵᦻḄᦻMNGOP஺Q⚪Ḅ⌕TUnoeÌAᑮZḄᡠᨵij஺Ï"ÐÑUABCDEFGHIJKLMNOPQRSTUVWXYZ}᪆UQ⚪ὃḄᦪÜÝÞḄßᣚNáâãᑴ஺1ஹᔜæᦪÜÝÞçèḄßᣚ

64Java.éḄᔜæᦪÜÝÞçèêëìæßᣚUíAßᣚîïᑴßᣚ஺íAÝÞßᣚᐕñᙠòlóôIᵫõö÷øᢥ-[ḄúᐜüíAᡂ஺fý|mþᦪÿḄᦪᔣᦪḄᦪᣚ஺᝞⌕ᩭᦪḄᦪᔣᦪḄᦪᣚᵨᑴᣚᵫᑏὅ!"#$%&᡻(஺)*ᣚᵫᢥ,ᐜᐵ$/01ᦪᣚᡂ31ᦪ4"Ḅ,ᐜ56byte,short,char->int-*long-*float-*doubleM⚪OᵫPchrAḄᦪRchar,STiḄRint,ᡠVchrA+iXYḄZ)*ᣚRint[ᵨintᦪ\]charST^◤ᑴᣚRchar஺ᦑM⚪abcdef(char)஺2ஹforklmᑴ1)forkl᡻(^✌ᐜ᡻(pqᓄstᯠYᑨwxyᩩ{ᔲ}~᝞}~ᑣ᡻(klOḄᨬY᡻(ᑖ஺ᡂklᑨwᩩ{஺2)VᙠforklḄpqᓄᑖcSTḄtᵨR᦮cforkl஺3)forklᵨPklᦪ"ḄV᪷klᩩ{ᡂklᦪ"Ḅ஺4)ᙠpqᓄᑖᑖV¡ᵨ⌹£¤(cst஺⌹£ᵨ⌹£ᑖ◞Ḅᑡ஺M⚪ᵫP஻A஻ᑮ஻Z஻ᐳ26c¬◤kl26ᡠV®cdef25஺ᐹ᝞±6publicclassJava1{publicstaticvoidmain(Stringargs[]){finalcharchrA='A';charchrDisplay;//*************Found**************for(inti=0;i<=25;i++)//************Found*************chrDisplay=(char)(chrA+i);System.out.print(chrDisplay);

65ÃÄÅ6JAVAᑖ/ÆMst10ஹÇ¡ᵨNetBeansᡭÉὃËᦻ{ᜳ±Ḅ⚗ÏJavaÐÑ⚗ÏOḄÒᦻ{JavaÐ,java᦮ḄÇᙠÓÔ("஻*********Found*********"±(Ḅ±ᑜÖᙢØfᐭÚᑁÜᯠYᑤ◀±ᑜÖÇßᑤ◀ÓÔ(ᡈᦋ*ᐸãäᨵᑁÜ஺æç^èᦋSéᨵᦻ{Ḅᦻ{êëæìÏí஺M⚪Ḅ⌕î6ᡂïð(îèñᫀ஺ð(R6a=5,b=7,c=9ó᪆6M⚪ὃõḄᦪḄ᣸஺÷cᦪḄᵫøᑮᜧ᣸Vúûᵨifüý÷þVèᑮM⚪✌ᐜ®cif⌱Ḅᑮaifa,bḄᦪacᑣᦪᨬḄᦪᐭa,ᨬb,cḄᦪḄᐭa஺ᐸᙠ!ᣚḄ#$ᵨᑮ&'t,ᵨ()Ḅ#஺ᐹ+,-᝞/0publicclassJava1(-publicstaticvoidmain(Stringargs[]){inta=9,b=5,c-7,t;//*********Found**********if(a>b){t=a;a=b;b=t;}if(a>c){t=a;a=c;c=t;}//*********Found**********if(b>c){t=b;b=c;c=t;}System,out.println("a="+a+”,b="+b+”,c="+c);})5670JAVA8ᑖ/;<=11ஹ@AᵨNetBeansᡭCὃEᦻGᜳ/Ḅ⚗JJava_3,K⚗JḄL,-ᦻGJava_3.javaMNO᦮Ḅ[@ᙠRST"஻*********Found*********''5TḄ/ᑜVᙢXYᐭZ[ᑁ]ᯠᑤ◀/ᑜV@aᑤ◀RSTᡈᦋdᐸefᨵᑁ]஺h

66$NiᦋjᨵᦻGḄᦻGklJm஺<⚪Ḅ⌕pM0qr᪗ᙠᦻ<᪾ud$r᪗vwxyᙠ᪗z{஺ᐸZ[|}~᝞/0Ḅᐰὃᔆᔆ᪗(98.40)᪆0<⚪ὃḄMAWTGᜐᳮ஺{GḄGḄX(ᡲGᜐᳮ)ᨵ0MᘤḄMᑭᵨ〉ᘤḄ஺G〉ᘤᓫḄᘤḄ¡¢,-£ṹ¥¦§M¨ᑏ◤⌕ḄX«ᐵḄXNᵨ஺setText()MTextFieldTextAeraḄXᵨ(®w¯Ḅ°Ḅᑁ]஺᜜²³lᑮ´kḄᭆ¶lJTextAreaḄAᵨ஺<⚪frame.(newWindowHandler());MR¸ᘤ¹TᣴᩗKXḄ¼ᦪMGᜐᳮὅWindowHandlerḄ¾¿WindowHandlerḄMWindowListenerᜐᳮḄMWindowEventGᡠ<ÁÂYḄR¸ᘤḄXMaddWindowListener஺txt.addMouseMotionListener(newMouseMotionAdapter()Ãᵨr᪗Äd〉ᘤMouseMotionAdapter,¨ᑏmouseMoved()X஺ᐹ+,-᝞/0importjavax.swing.*;importjava.awt.event.*;importjava.awt.*;publicclassJava_3{privatestaticJLabelIbl;privatestaticJTextAreatxt;publicstaticvoidmain(String[]args){JFrameframe=newJFrame("ᐰÇÈÉÊËÌὃÍ”)LIbl=newJLabel;txt=newJTextArea஺'“);frame.getContentPane().add(txt,BorderLayout.CENTER);

67frame.getContentPane().add(Ibl,BorderLayout.SOUTH);//*************Found*****************frame.addWindowListener(newWindowHandler());஻R¸ᘤWindowHandler//*************Found*****************txt.addMouseMotionListener(newMouseMotionAdapter(){publicvoidmouseMoved(MouseEvente)StringstrTemp;strTemp="qûr᪗vw0("+e.getX()+”,"+e.getY()//*************Found****************Ibl.setText(strTemp);஻xyr᪗vw}})frame.setSize(200,150);frame.show();classWindowHandlerimplementsWindowListenerpublicvoidwindowOpened(WindowEvente){}publicvoidwindowClosing(WindowEvente){System,exit(0);}publicvoidwindowClosed(WindowEvente){}publicvoidwindowiconified(WindowEvente){}publicvoidwindowDeiconified(WindowEvente){}publicvoidwindowActivated(WindowEvente){}publicvoidwindowDeactivated(WindowEvente){}+,-.JAVA1ᑖ/4ᔠ6ᵨ12ஹ9:ᵨNetBeansᡭ>ὃ@ᦻBᜳDḄ⚗GJava_2,I⚗GJḄKLMᦻBJava_2.javaOPQ᦮ḄS9ᙠUVW"஻*********Found*********"D\W]^ḄDᑜ`ᙢbcᐭefᑁhSᯠjᑤ◀Dᑜ`S9mᑤ◀UVWᡈᦋpᐸrsᨵ]^ᑁh஺vwxPyᦋz{ᨵᦻBḄᦻB|}v~G஺

68⚪Ḅ⌕O.ᦪJḄarrScoreJḄᡠᨵSP.nSum=1572᪆•.⚪ὃḄOᦪḄ6ᵨ஺JavaJᨵᦪᦪ᪀Sᨵ\ᦪ஺JavaJḄᦪS▭Oᵫ\ᦪ"¡¢஻ᡂḄ஻ᦪḄᦪᓽ¥¦\ᦪḄᐗ¨O©\¦\ᦪᑣ«¬ᦪS®¯°S\ᦪḄ±²ᝅ´µS᪀ᡂ¶ᦪ஺⚪JarrScore□□Oᵫ{72,83,56,92,67}ஹ{72,84,76,54,89}ஹ{94,87,75,68,75}ஹ{82,85,78,90,93)4¦\ᦪᡂS¸¦\ᦪ¹ᵫ5¦ᐗ¨ᡂ஺⚪LMḄ᜜»¼½“for(inti=0;i

69+,-.JAVA1ᑖ/Çᓫ6ᵨ13ஹ9:ᵨNetBeansᡭ>ὃ@ᦻBᜳDḄ⚗GJavaÊSI⚗GJḄKLMᦻBJavaÊ,javaOPQ᦮Ḅ,\9ᙠUVW"஻*********Fourid*********"D\W]^ḄDᑜ`ᙢbcᐭefᑁhSᯠjᑤ◀Dᑜ`S9mᑤ◀UVWᡈᦋpᐸrsᨵ]^ᑁh஺vwxPyᦋz{ᨵᦻBḄᦻB|}v~G஺⚪Ḅ⌕O.:LMËefÌWSÌW᝞DÍᡠÃ.■ᘤJav.„|M[g]|E3|Appletᐰὃᑭὃ஺᪆.⚪ὃḄOGraphics¯Ḅ6ᵨ஺Graphics¯ÏжÑ`ᙊ᪵ḄÇᓫÔÕ¯ÖḄb×S©᜜ØÏжÃᦻḄb×஺¶ÙᑴSLM⌕ᨵ\¦ᨵᦔḄÍܽ᛻(ᵫGraphics¯Ḅ\¦Þ⊤Ã)஺ßGraphics¯O\¦àáḄâ¯SãPËä¢åÞᓄ஺\¦ᐹÅḄÞå\¦1BçèSéêᯠjë\¦ìᦪí⌴ïLMᑮ\¦1BḄupdate()paint()b×஺⚪Ìᵨ¶Graphics¯ḄdrawStringb×setColorb×SᑖðᵨñÙᑴᢣ´Ḅᦻóôõö÷⁐஺ᐹÅLM᝞D.importjava,applet.*;importjava.awt.*;publicclassJava_lextendsApplet(publicvoidpaint(Graphicsg)(//************Found**********g.setColor(Color,blue);஻õöÃḄ÷⁐ù⁐//***********Found**********g.drawString("ᐰûüýþÿὃ”,2,30);஻//**********Found***********

70g.setColor(Color,cyan);஻#$Ḅ&⁐//**********Found************g.drawString(",-.ᑭ01ὃ”210,50);//})6789JAVA=ᑖ/?@AB14ஹEFᵨNetBeansᡭKὃLᦻNᜳPḄ⚗RJava_3,U⚗RVḄWXYᦻNJava_3.java[\]᦮Ḅ2Eᙠ`ab"஻*********Fourid*********"PcbdeḄPᑜgᙢijᐭlmᑁo2ᯠqᑤ◀Pᑜg2Etᑤ◀`abᡈᦋwᐸyzᨵdeᑁo஺}~\ᦋᨵᦻNḄᦻN}R஺@⚪Ḅ⌕[9ᙠAppletV010Ḅ▤஺]ᗐJava_3.javaᦻN2b஺b9◅!"#ᘤ-Java_2.dassApplet0!=1±_1!=12!=23!=64!=245!=1206:=7207!=50408:=403209!=36288010!=3628800_஺᪆9@⚪ὃḄ[AppletḄᑏ஺@⚪VḄAppletXY[java.applet.AppletḄ஺ᐹ¢ḄXY᝞P9importjava.awt.*;importjava,applet.//*********Found********publicclassJava_3extendsApplet஻Applet(TextAreaoutputArea;publicvoidinit()

71setLayout(newBorderLayout());outputArea=newTextAreaO;//*********Found********add(outputArea);஻«Applet¬¢V®TextArea᪀N//°±010Ḅ▤for(longi=0;i<=10;i++)outputArea.append(i+”!="+factorial(i)+"

72");}//ᵨ⌴¸¹º▤i»publiclongfactorial(longnumber)(if(number<=1)//?@¼½return1;elsereturnnumber*factorial(number-1);6789JAVA=ᑖ/¿ᔠÁᵨ15ஹEFᵨNetBeansᡭKὃLᦻNᜳPḄ⚗RJava_2,U⚗RVḄWXYᦻNJava_2.java[\]᦮Ḅ2Eᙠ`ab"஻*********Fourid*********"PcbdeḄPᑜgᙢijᐭlmᑁo2ᯠqᑤ◀Pᑜg2Etᑤ◀`abᡈᦋwᐸyzᨵdeᑁo஺}~\ᦋᨵᦻNḄᦻN}R஺@⚪Ḅ⌕[9ÂÃcÄgX2ÅÆÇÈ6bÊ“Hello!”஺b9Hello!Hello!Hello!Hello!Hello!Hello!᪆9@⚪ὃḄ[gXḄᭆÎÏFᵨ஺@⚪V2HelloÐÑRunnableÓÔ2gXtᑣ[ᑭᵨHelloḄÐÖB×ᦪÂÃḄ஺

73ᐹ¢ḄXY᝞P9publicclassJava_2|publicstaticvoidmain(Stringargs[])(Helloh=newHello();//*********Found********Threadt=newThread(h);஻01ÐÑRunnableÓÔḄḄÐÖÂÃgXt.start();})//*********Found********classHelloimplementsRunnable஻ÐÑRunnableÓÔ{inti=0;publicvoidrun()(while(true)(System.out.printin("Hello!”);if(i++==5)break;6789JAVA=ᑖ/ßᓫÁᵨ16ஹEFᵨNetBeansᡭKὃLᦻNᜳPḄ⚗RJavaá2U⚗RVḄWXYᦻNJavaá,java[\]᦮ḄâEᙠ`ab"஻*********Found*********''5cbdeḄPᑜgᙢijᐭlmᑁo2ᯠqᑤ◀Pᑜg2Etᑤ◀`abᡈᦋwᐸyzᨵdeᑁo஺}~\ᦋᨵᦻNḄᦻN}R஺@⚪Ḅ⌕[9]ᡂXYbåᫀ஺b9TQ_IN=9.32b=83

74i=234c=pd=3.00005᪆•9@⚪ὃḄ[ᦪìíḄ¹º஺1)îïðñḄ¹ºᵨfinalᐵó2ᦑ@⚪஻______doubleTQIN=9.32;஻jfinal஺2)îï᦮íñḄ¹º2Javadõö÷byteஹshortஹintÏlongøùíḄñ஺ᯠ@⚪”b;஻ḄúûVüøùíýþÿᑏᵫᡠḄ⌕'7/⁚஻ᦑ⚪Ḅbyte஺ᐹ'᝞)*importjava.io.*;publicclassJava_l(publicstaticvoidmain(Stringargs[]){//*********Found********finaldoubleTQIN=9.32;஻TQINPQ//*********Found********byteb;஻⁚inti;charc;doubled=3.00005;b=0123;i=234;c=p;System.out.printIn(TQ_IN=+TQ_IN);System,out.println("b="+b);System.out.println("i="+i);System.out.println(/c="+c);System.out.println("d="+d);})[\]*JAVA`ᑖ/bcd17ஹfgᵨNetBeansᡭkὃmᦻoᜳ)Ḅ⚗rJavast⚗rḄ

75uᦻoJavas,javavwx᦮Ḅfᙠ{|}"஻*********F()und*********")~}Ḅ)ᑜᙢᐭᑁᯠᑤ◀)ᑜfᑤ◀{|}ᡈᦋᐸᨵᑁ஺wᦋᨵᦻoḄᦻor஺⚪Ḅ⌕v*xᡂ¡}¢ᫀ஺¡}¤¥P*TQ_IN=66.66b=166i=512c=qd=2.66666¨᪆•*⚪ὃ«Ḅvᐵ஺1)main஺®v~¯ᱯ±Ḅ®²vᡠᨵḄJavaApplication᡻}Ḅᐭ´]ᡠµ¶·~¯JavaApplication¸¹ᨵº»¼ᨵ~¯main஺®½ºmain()®¸¹ᵫstatic¾⛲ᦑ⚪~“publicvoidmain(Stringargs´)“"static”஺2)ÂQḄᵨfinalᐵᦑ⚪஻doubleTQIN=66.66;""final”஺ᐹ'᝞)*importjava.io.*;publicclassJava_l(//*********Found********publicstaticvoidmain(Stringargs[])(஻*********Found********finaldoubleTQ_IN=66.66;஻TQsNPQshortb;inti;charc;doubled=2.66666;b=0xA6;i=512;c=qÄSystem,out.println(/zTQ_IN=஻+TQ_IN);

76System,out.println("b="+b);System,out.println("i="+i);System.out.println("c="+c);System,out.println(/d="+d);})[\]*JAVA`ᑖ/bcd18ஹfgᵨNetBeansᡭkὃmᦻoᜳ)Ḅ⚗rJavast⚗rḄuᦻoJavas,javavwx᦮Ḅfᙠ{|}"஻*********Found*********")~}Ḅ)ᑜᙢᐭᑁᯠᑤ◀)ᑜfᑤ◀{|}ᡈᦋᐸᨵᑁ஺wᦋᨵᦻoḄᦻor஺⚪Ḅ⌕v*xᡂ¡}¢ᫀ஺¡}¤¥P*TQIN=120.67b=39i=4096c-9d=5.68889¨᪆.*⚪ὃ«ḄvᦪÉÊḄ஺1)ᵫJavasv~¯Êᦑ⚪~"publicJavas"ᐵclass஺2)ᵫᙠË`ᑖÂcÌPÍ9,º⚪☢⌕ÏḄÐÑPÍ9,ᦑ"c;஻char஺ᐹ'᝞)*importjava.io.*;//*********Found********publicclassJava1(-publicstaticvoidmain(Stringargs[]){finaldoubleTQIN=120.67;byteb;inti;//*********Found********

77charc;doubled=5.68889;b=047;i=4096;c='9';System,out.println(/TQIN="+TQIN);System,out.println("b="+b);System.out.println("i="+i);System,out.println("c="+c);System,out.println("d="+d);[\]*JAVA`ᑖ/bcd19ஹfgᵨNetBeansᡭkὃmᦻoᜳ)Ḅ⚗rJavast⚗rḄuᦻoJavas,javavwx᦮Ḅfᙠ{|}"஻*********Foiind*********"F~}Ḅ)ᑜᙢᐭᑁᯠᑤ◀)ᑜfᑤ◀{|}ᡈᦋᐸᨵᑁ஺wᦋᨵᦻoḄᦻor஺⚪Ḅ⌕v*xᡂ¡}¤¥P*AbstractWindowToolkit¨᪆*⚪ὃ«ḄvᦪÕḄÖ×஺1)Ö×~■¯ᦪÕḄÙÚP*arrayName=newtype[arraySize];,ÛᜐḄ"type”Ý⊤ḄvᦪÉÊᵫ⚪Ḅ~"String´awt=news3];“ßᦪÕawtḄv“String”ÊᦑÛ“String”஺2)ᵫ⚪⚪☢⌕Ïà¯Íá½âà¯ÍáãäåæᙠawtᦪÕᡠµçèàéforêëìíµîâà¯Íáï}Ïðᦑ"System,out.printin();""ᐹ'᝞)*publicclassJava1{publicstaticvoidmain(String[]args){//*********Found********String[]awt=newString[3];

78awt[0]="Abstract”;awt[1]="Window”;awt[2]="Toolkit”;for(inti=0;i<3;i++)//*********Found********System,out.println(awt[i]);[\]*JAVA`ᑖ/bcd20ஹfgᵨNetBeansᡭkὃmᦻoᜳ)Ḅ⚗rJavast⚗rḄuᦻoJavas,javavwx᦮Ḅòfᙠ{|}"஻*********Fóôund*********")~}Ḅ)ᑜᙢᐭᑁᯠᑤ◀)ᑜfᑤ◀{|}ᡈᦋᐸᨵᑁ஺wᦋᨵᦻoḄᦻor஺⚪Ḅ⌕v*xᡂ¡}¤¥᝞)õᡠö******ᙠ÷øᓄúû*****x=0y=0z=0*****ᙠ÷øᓄ*****x=20y=30z=5*****ᙠ÷øᓄú*****x=20y=30z=0¨᪆*⚪ὃ«ḄvḄdᵨü஺Êᨵýþᑖÿᦻlocal\automatic\temporary\stackvariableᙠ"#$Ḅ&'(ᦻinstancevariableᙠ"#᜜+ᙠ,-.ᑁḄ0ᨵ234ᡂᕒ&,ᦻclassvariableᵨᐵ9:static-.Ḅ஺<=Ḅ>?@ᑖBᙠCḄ"#DEᵨ2DFG0+ᙠC"#⌨IJDK├&'(ᙠMᵨnewXxxxFGC,Ḅ'(2DFG0+ᐸ>?@RC,Ḅ'(STḄ>?@UV&,ᙠC,DWX2DFG0YZ⌕ᵨnewXxxxOFG0ᡠᨵC,Ḅ'(STᐳ_C,0ᐸ>?@,Ḅ>?@஺ᦑabcdefḄx,y,zᙳ'(0jkᦪm஻Variable

79V=new______;”ḄrᵨFG,VariableḄZs'(STV,ᦑatu“Variable஺“&wᵨ'(STvEᵨ(v.init(20,30);)ᐸ'("#init20"#mx,y,zḄxᑖB20ஹ30ஹ5,V20ᙠz"#mS'(x,y{f|}x0ᐸxᑖB20ஹ30,ᦑzt஻=x;஻u“this,x”஺ᐹbc᝞classVariable{intx=0,y=0,z=0;voidinit(intx,inty){//*********Found********this.x=x;this.y=y;intz=5;஻System,out.printin("*****ᙠᓄm*****");System,out.printlnC^x="+x+"y="+y+"z="+z);})publicclassJava1{publicstaticvoidmain(String1]args){//*********Found********Variablev=newVariable();System.out.printin("*****ᙠᓄ*****");System,out.println(/zx="+v.x+"y="+v.y+“z="+v.z);v.init(20,30);System.out.printin("*****ᙠᓄJ*****");System,out.println(//x="+v.x+"y="+v.y+“z="+v.z);})JAVAᑖ/ar21ஹMᵨNetBeansᡭὃ>ᦻᜳḄ⚗Java_2,C⚗mḄbcᦻJava_2.javaY᦮Ḅ]ᙠf"஻*********Found*********''FZfḄᑜ¡ᙢ"uᐭ¤¥ᑁ¦0ᯠJᑤ◀ᑜ¡0ªᑤ◀fᡈᦋᐸ<®ᨵᑁ¦஺?¯

802Y°ᦋ±ᨵᦻḄᦻ²³?´µ஺a⚪Ḅ⌕·FGZs᦮¸ᦪ¹º»ᐸxᡭᓺ½I஺¾f¿À0123456789Ë᪆a⚪ὃÍḄᦪ¹ḄFG³¾ᵨ஺1)JavamFGZsᦪ¹STḄÏÐarrayName=newtype[arraySize],⊤Öᦪ¹arrayNameZs×ᨵarraySizestype¸ᦪ¹ᐗÙḄᦪ¹஺ᦑa⚪⌕·FGᒹ×10s᦮¸ᦪ¹ᐗÙḄ"anArray=______&”ḄtÏmÝu“newint[10]7'o2)ᵫàá½IḄanArray[i]Ḅx0âᐸxាäåæçèéḄèéiḄxUê0ᦑtÏ஻=i;஻u஻anArray[i]஻஺ᐹbc᝞publicclassJava_2(publicstaticvoidmain(String[]args){int[]anArray;//-.Zs᦮¸ᦪ¹//*********Found********anArray=newint[10];//FGᦪ¹0ᒹ×10sᐗÙ஺//ðᦪ¹æsᐗÙ}xºᡭᓺ½Ifor(inti=0;iᦻᜳḄ⚗Java_2,C⚗mḄbcᦻJava_2.javaY᦮Ḅ0ᙠf"஻*********Found*********"ZfḄᑜ¡ᙢ"uᐭ¤¥ᑁ¦0ᯠJᑤ◀ᑜ¡0ªᑤ◀fᡈᦋᐸ<®ᨵᑁ¦஺?¯2Y°ᦋ±ᨵᦻḄᦻ²³?´µ஺

81a⚪Ḅ⌕·ᡂbcº¾fJûÖZsüý஺Cüýᒹ×Zsᚪÿᦻᢥᙠᦻ᝞ᡠ஺ShowDate&'()iOct0713:53:17CST2005᪆⚪ὃḄ!"#ᳮᘤḄ&'()*ᘤḄ+,஺⚪-./01f&'2FlowLayout!"#ᳮᘤᦑ45(newFlowLayout());"67"f.setLayout”,8+,2ᐵ:./Ḅ)*ᘤ;0<ᢥ01b,=>0ᐸ@A+,)*ᘤᣴᩗDEFGHIJᵨactionPerformed@ALMᜐᳮᦑ45”(this);7“b.addActionListener”஺ᐹQRS᝞Timportjava.awt.*;importjava.awt.event.*;importjava.util.Date;publicclassJava2implementsActionListener{Framef;Buttonb;TextFieldtf;publicJava2(){f=newFrame("ShowDate");//*********Found********f.setLayout(newFlowLayout());f.setSize(300,100);஻+,ᐵ:./Ḅ)*ᘤf.addWindowListener(newWindowAdapter(){publicvoidwindowClosing(WindowEvente){System,exit(0);}})Lb=newButton("“)L//*********Found********b.addActionListener(this);

82tf=newTextField(30);f.add(b);f.add(tf);f.setVisible(true);}publicstaticvoidmain(String[]args){Java_2t=newJava_2();}publicvoidactionPerformed(ActionEvente){Dated=newDate();஻஺tf.setText(d.toString());JAVAᑖ/ᓫ6ᵨ23ஹᵨNetBeansᡭὃᦻMᜳTḄ⚗Java_2,⚗ḄRSᦻMJava_2.java᦮Ḅᙠ+A"஻*********F()und*********"TA¡¢ḄTᑜ¤ᙢ¦7ᐭ¨©ᑁ«ᯠᑤ◀Tᑜ¤°ᑤ◀+AᡈᦋIᐸ³´ᨵ¡¢ᑁ«஺¶·¸ᦋ¹ºᨵᦻMḄᦻM»(¶¼½஺⚪Ḅ⌕¿RS./஺./ᒹÁᢥᦻᢥᙠᦻ᝞ᡠ஺-Inix|*'()FriOct0714:35:42CST2005᪆⚪ὃḄLMÂI஺ᙠæÄmain()ᵨ᪀⌼¦ÄJava_2()ÇÈ2ÉJava_2Ḅ01t,8ᙠÉJava_2ÊË2FrameÌ᪀MLM)*ᦑÍ4"public(){“7"Java_2”;ᵫ<¡¢”(newWindowAdapter(){publicvoidwindowClosing(WindowEvente){System,exit(0);}});”ḄÒÓ+,./)*ᘤᦑÍÔ47“f.addWindowListener^oᐹQRS᝞Timportjava.awt.*;importjava.awt.event.*;

83importjava.util.*;publicclassJava_2implementsActionListener{Framef;Buttonb;TextFieldtf;//*********Found********publicJava_2(){f=newFrame(zEShowDate");f.setLayout(newFlowLayout());f.setSize(400,100);஻+,./)*ᘤ(WindowListener)//*********Found********f.addWindowListener(newWindowAdapter(){publicvoidwindowClosing(WindowEvente){System,exit(0);}})Lb=newButton("”)Lb.addActionListener(this);tf=newTextField(30);f.add(b);f.add(tf);f.setVisible(true);)publicstaticvoidmain(String[]args){Java_2t=newJava_2();}publicvoidactionPerformed(ActionEvente){Dated=newDate();஻஺tf.setText(d.toString());})JAVAᑖ/ᓫ6ᵨ24ஹᵨNetBeansᡭὃᦻMᜳTḄ⚗Java_3,⚗ḄRSᦻMJava_3.java᦮Ḅᙠ+A

84"஻*********Fourid*********"TA¡¢ḄTᑜ¤ᙢ¦7ᐭ¨©ᑁ«ᯠᑤ◀Tᑜ¤°ᑤ◀+AᡈᦋIᐸ³´ᨵ¡¢ᑁ«஺¶·¸ᦋ¹ºᨵᦻMḄᦻM»(¶¼½஺⚪Ḅ⌕¿ᙠ᪗⚪-"ButtonTest஻Ḅ./ᢥᢥØÙÚ᪗⚪-“Another”Ḅ./Ü᝞ᡠÝ஺ÞAßà-Üᵨ஻ᡂ“âᓫTḄ஻ãäᡂ/ÞA஻ßåRSÞAÝæButtonTestPresstheButton!#AnOtherThisframeshowswhenpressingthebuttoninButtonTest᪆•⚪ὃḄLMᜐᳮ஺1Ýᵫ

85f.add(b);f.setVisible(true);}publicvoidactionPerformed(ActionEvente)(Framefr=newFrame(zEAnOther");fr.setBackground(Color,green);fr.add(newLabel(EzThisframeshowswhen"+"pressingthebuttoninButtonTest"));fr.pack();fr.setVisible(true);})JAVAᑖ/÷ᔠ6ᵨ25ஹᵨNetBeansᡭὃᦻMᜳTḄ⚗Java_3,⚗ḄRSᦻMJava_3.java᦮Ḅ[ᙠ+A"஻*********F()und*********"TA¡¢ḄTᑜ¤ᙢ¦7ᐭ¨©ᑁ«ᯠᑤ◀Tᑜ¤°ᑤ◀+AᡈᦋIᐸ³´ᨵ¡¢ᑁ«஺¶·¸ᦋ¹ºᨵᦻMḄᦻM»(¶¼½஺⚪Ḅ⌕¿RS¿ᢣú᦮ᦪḄ▤ýᐸÞAḄßà-5Ḅ▤ý120᪆⚪ὃḄ¿ᦪḄ▤ýḄþR¦Ä஺1)ᵫ<⚪¿ḄÿᦪᢣḄ᦮ᦪḄ▤ᡠᨵᦪᐭ◤ᐸᦪnum,ᦑ!/Enum=;“$"args[0]”஺2)ᵫ(num)*Ḅ+ᦑ⌕-ᓄᡂᦪ012ᐸ▤ᡠ3!"intinput=Integer.parselnt(______);“$"num”஺3)5⚪78while9:2;<)ᐭḄᦪḄ▤=*>(fact)ᦑ?!"fact=*x;"$"fact"஺ᐹABC᝞EFpublicclassJava_3(publicstaticvoidmain(String[]args)Stringnum;

86if(args,length>0)//*********Found********num=args[0];elsenum=5;//*********Found********intinput=Integer.parselnt(num);intresult=Java_3(input);System,out.printin(input+”Ḅ▤+"+result);}publicstaticintJava_3(intx)(if(x<0)return0;intfact=1;while(x>1)|//*********Found********fact=fact*x;x=x-1;)returnfact;))vwxFJAVA{ᑖ/}ᔠᵨ26ஹᵨNetBeansᡭὃᦻᜳEḄ⚗Java⚗)ḄBCᦻJava,java+᦮Ḅᙠ"஻*********Found*********"EḄEᑜᙢ$ᐭ¡¢ᑁ¤ᯠ¦ᑤ◀Eᑜ©ᑤ◀ᡈᦋ¬ᐸ®ᨵᑁ¤஺*¯°ᦋ±ᨵᦻḄᦻ²³*>´஺5⚪Ḅ⌕2+FᡂBC=µ2°¶ᫀ஺µ¸¹ºFaa=304nn=263ff=593.94

87dd=6.73255...¾᪆•F5⚪ὃÁḄ+ᦪÂÃÄÅÆḄ-ᣚᐵÉ஺1)5⚪aÊiËÌaa,Íiஹaa®κ᦮Äᵫ(ᙠµÏ8B)ÐᐜÒÓḄᦪÂÔÕ¬ᔣÐᐜÒ×ḄᦪÂÕ¬-ᣚᦑᙠÎaØ⌕ᐸᦪÂÃÄḄÐᐜÒÎᡂÓ(iḄᦪÂÃÄᓽÔᦑ!"a='h';"$"char"ᡈ"byte"ᡈ"short"ᡈ"int"஺2)ᵫ(Û98.99ºfloatÄᦑÎḄfÝÞºfloatÄᡠ3!"f=98.99f;"$"float”஺ᐹABC᝞EFimportjava.io.*;publicclassJava_l{publicstaticvoidmain(Stringargs[])t//*********Found********chara='h";byteb=6;inti=200;longn=567L;//*********Found********floatf=98.99f;doubledM.7788;intaa=a+i;longnn=n-aa;floatff=b*f;doubledd=ff/aa+d;System,out.println("aa="+aa);System,out.println("nn="+nn);System.out.println("ff="+ff);System.out.println("dd="+dd);})vwxFJAVA{ᑖ/â5ãä27ஹᵨNetBeansᡭὃᦻᜳEḄ⚗Java⚗)ḄBCᦻJava,java+᦮Ḅᙠ

88"஻*********Found*********"EḄEᑜᙢ$ᐭ¡¢ᑁ¤ᯠ¦ᑤ◀Eᑜ©ᑤ◀ᡈᦋ¬ᐸ®ᨵᑁ¤஺*¯°ᦋ±ᨵᦻḄᦻ²³*>´஺5⚪Ḅ⌕2+FᡂBC=µ2°¶ᫀ஺µ¸¹ºFaa=304bb=263ff=593.94dd=6.73255...¾᪆F5⚪ὃÁḄ+ᦪÂÃÄÅÆḄ-ᣚᐵÉ஺1)ᵫ“intaa=a+i"å"chara='h'஻ÔviḄᦪÂÃÄḄÐᐜÒÞᯠ+Ó(intÃÄḄᡠÔᙠ"byte"ᡈ"short஻ᡈ஻int஻)⌱çèéºiḄº200,ÍbyteÃÄᦪÂë+T28ᑮ+127ÅÆᦑiᦪÂÃÄ1ᵨbyteᩭÎ஺ᡠ!"______i=200;஻$"short஻ᡈmto2)ᵫ(Û567LºlongÄᦑÎḄbÝÞºlongÄᡠ3!"b=567L;"$"long"஺ᐹABC᝞EFimportjava.io.*;publicclassJava_l(publicstaticvoidmain(Stringargs[])(chara='h';bytebl=6;஻*********Found********inti=200;//*********Found********longb=567L;floatf=98.99f;doubled=4.7788;intaa=a+i;longbb=b-aa;floatff=bl*f;doubledd=ff/aa+d;

89System,out.println("aa="+aa);System,out.println("bb="+bb);System.out.printin("ff="+ff);System.out.println("dd="+dd);vwxFJAVA{ᑖ/â5ãä28ஹᵨNetBeansᡭὃᦻᜳEḄ⚗Java⚗)ḄBCᦻJava,java+᦮Ḅᙠ"஻*********Found*********"EḄEᑜᙢ$ᐭ¡¢ᑁ¤ᯠ¦ᑤ◀Eᑜ©ᑤ◀ᡈᦋ¬ᐸ®ᨵᑁ¤஺*¯°ᦋ±ᨵᦻḄᦻ²³*>´஺5⚪Ḅ⌕2+FᡂBC=µ2°¶ᫀ஺µ¸¹ºFaa=512bb=-167ff=593.94dd=5.93883...¾᪆F5⚪ὃÁḄ+ᦪÂÃÄÅÆḄ-ᣚᐵÉ஺1ïᵫ"inti=400;"å"chara='p';"Ôvᙠa+icharÄḄᦪÂðÕ¬-ᣚᡂintÄḄᦪÂᦑa+i¦ḄḄᦪÂÃĺintÄᦑaaÎᡂintÄèéºintÄᦪÂᔣlongÄᦪÂ-ᣚÔÕ¬-ᣚᦑÝÔaaÎᡂlongÄ஺ᡠ!"aa=a+i;"$"int"ᡈlongo2ïᵫ(blḄᦪÂÃĺbyte,fḄᦪÂÃĺlong,ᙠbl*fÓÐᐜÒḄᦪÂÃÄbyteðÕ¬ᔣ×ÐÒḄᦪÂÃÄlong-ᣚᦑbl*f¦ḄᦪÂÃÄÞºlongÄñᵫ(⚪☢⌕2;ḄffóôõöᦪᡠffÎᡂfloatÄᦑ3!஻ff=bl*f;”$"float"஺ᐹABC᝞EFimportjava.io.*;publicclassJava1publicstaticvoidmain(Stringargs[])

90chara-p';bytebl=6;inti=400;longb=345L;floatf=98.99f;doubled=4.7788;//*********Found********intaa=a+i;longbb=b-aa;//*********Found********floatff=bl*f;doubledd=ff/aa+d;System.out.println("aa="+aa);System,out.println("bb="+bb);System,out.println("ff="+ff);System.out.println("dd="+dd);}}vwxFJAVA{ᑖ/â5ãä29ஹᵨNetBeansᡭὃᦻᜳEḄ⚗Java⚗)ḄBCᦻJava,java+᦮Ḅᙠ"஻*********Fourid*********"EḄEᑜᙢ$ᐭ¡¢ᑁ¤ᯠ¦ᑤ◀Eᑜ©ᑤ◀ᡈᦋ¬ᐸ®ᨵᑁ¤஺*¯°ᦋ±ᨵᦻḄᦻ²³*>´஺5⚪Ḅ⌕2+FᡂBC=µ2°¶ᫀ஺µ¸¹ºFaa=220bb=569ff=593.94dd=7.47852...¾᪆F5⚪ὃÁḄ+ᦪÂÃÄÅÆḄ-ᣚᐵÉ஺1)ᵫ(bºlongÄaaºintÄᦑBCᙠ᡻b-aaÉøðÕ¬intÄ-ᣚᡂlongÄᦑbbÎᡂlongÄ஺ᡠ!"bb=b-aa"$"long"஺2)ᵫ(ffºfloatÄaaºintÄ,ᦑff/aa᡻¸¹ºfloat

91ÄùÌúdoubleÄḄd,ᐸ¸¹ÞºdoubleÄᦑ3!஻dd=ff/aa+d"$"double”஺ᐹABC᝞EFimportjava.io.*;publicclassJava1{-publicstaticvoidmain(Stringargs[])(chara='x';bytebl=6;inti=100;longb=789L;floatf=98.99f;doubled=4.7788;intaa=a+i;஻*********Found********longbb=b-aa;floatff=bl*f;//*********Found********doubledd=ff/aa+d;System.out.println("aa="+aa);System,out.println("bb="+bb);System,out.println("ff="+ff);System,out.println("dd="+dd);})vwxFJAVA{ᑖ/â5ãä30ஹᵨNetBeansᡭὃᦻᜳEḄ⚗Java⚗)ḄBCᦻJava,java+᦮Ḅᙠ஻஻*********Fourid*********"EḄEᑜᙢ$ᐭ¡¢ᑁ¤ᯠ¦ᑤ◀Eᑜ©ᑤ◀ᡈᦋ¬ᐸ®ᨵᑁ¤஺*¯°ᦋ±ᨵᦻḄᦻ²³*>´஺5⚪Ḅ⌕2+FᡂBC=µ2°¶ᫀ஺µ¸¹ºFaa=619

92bb=-496ff=593.94dd=5.73831...¾᪆•F5⚪ὃÁḄ+ᦪÂÃÄÅÆḄ-ᣚᐵÉ஺1)ᵫ(ÄÊ᦮ÄÅÆÔ7ᵨᦑ!஻_____a='w';஻Ô$byteᡈshortᡈcharᡈintᡈlong஺2)ᵫ(aºÄᡈ᦮Ä)Ḅûiº᦮Äᦑ*üa+iḄåḄḄᦪÂÃĺintᡈlongÄ஺ᡠ3!஻aa=a+i஻$஻int஻ᡈlongoᐹABC᝞EFimportjava.io.*;publicclassJava_l|publicstaticvoidmain(Stringargs[])(஻*********Found********bytea-w';bytebl=6;inti=500;longb=123L;floatf=98.99f;doubledM.7788;//*********Found********intaa=a+i;longbb=b-aa;floatff=bl*f;doubledd=ff/aa+d;System,out.println("aa="+aa);System.out.printIn("bb="+bb);System.out.println("ff="+ff);System.out.println("dd="+dd);})vwxFJAVA{ᑖ/â5ãä31ஹᵨNetBeansᡭὃᦻᜳEḄ⚗Java⚗)Ḅ

93BCᦻJava,java+᦮Ḅᙠ"஻*********F()und*********"EḄEᑜᙢ$ᐭ¡¢ᑁ¤ᯠ¦ᑤ◀Eᑜ©ᑤ◀ᡈᦋ¬ᐸ®ᨵᑁ¤஺*¯°ᦋ±ᨵᦻḄᦻ²³*>´஺5⚪Ḅ⌕2+FᡂBC=µ2°¶ᫀ஺µ¸¹ºFTQ_IN=8.88b=9i=234c=qd=2.79994¾᪆•F5⚪ὃÁḄ+ÛåḄÎ஺1)ÿḄᵨfinalᐵᦑ⚪஻_____doubleTQIN=8.88;஻&“final”஺2)ᵫ-./01c3Ḅ4q,7⚪☢/⌕:;<Ḅ=>4q,ᦑ?஻c;஻&஻char”஺ᐹC-.᝞EFimportjava.io.*;publicclassJava1(-publicstaticvoidmain(Stringargs[])(//*********Found********finaldoubleTQIN=8.88;஻byteb;inti;//*********Found********charc;doubled=2.79994;b=011;i=234;c=q^System.out.printlnC'TQIN="+TQIN);System.out.printIn("b="+b);System.out.println(/i="+i);

94System,out.println("c="+c);System,out.println("d="+d);cdeFJAVAhᑖ/jkl32ஹnoᵨNetBeansᡭrὃtᦻvᜳEḄ⚗yJavaz{⚗y/Ḅ|-.ᦻvJavaz,java>}~᦮Ḅ]nᙠ"஻*********Fc)und*********"EḄEᑜᙢ&ᐭᑁᯠᑤ◀Eᑜnᑤ◀ᡈᦋᐸᨵᑁ஺}ᦋ1ᨵᦻvḄᦻv¡¢y£஺⚪Ḅ⌕:>F~ᡂ-.¥¦:§ᫀ஺¦©ª«FTQ_IN=188.88b=302i=1024c=Ud=2.79994᪆F⚪ὃ¯Ḅ>ᦪ±²³Ḅ஺1)main஺´>µᱯ·Ḅ´¸>ᡠᨵḄJavaApplication-.᡻Ḅᐭ»eᡠ¼½¾µJavaApplication¿Àᨵ7ÁÂᨵµmain஺´Ã7main஺´ÄÅÆÇᦑ⚪"publicstaticmain(Stringargs»)“&"void"஺2)ᵫ-.01c3ḄÇ>4U,7⚪☢/⌕:;<Ḅ=>4U,ᦑ?஻c;஻&"char"஺ᐹC-.᝞EFimportjava.io.*;publicclassJava_l{//*********Found********publicstaticvoidmain(Stringargs[]){finaldoubleTQIN=188.88;longb;inti;//*********Found********

95charc;doubled=2.79994;b=0456;i=1024;c='U';System,out.println(/TQIN="+TQIN);System,out.println("b="+b);System.out.println("i="+i);System,out.println("c="+c);System,out.println("d="+d);cdeFJAVAhᑖ/jkl33ஹnoᵨNetBeansᡭrὃtᦻvᜳEḄ⚗yJava_2,{⚗y/Ḅ|-.ᦻvJava_2.java>}~᦮Ḅnᙠ஻஻*********Fourid*********"EḄEᑜᙢ&ᐭᑁᯠᑤ◀Eᑜnᑤ◀ᡈᦋᐸᨵᑁ஺}ᦋ1ᨵᦻvḄᦻv¡¢y£஺⚪Ḅ⌕:>FË̵-ᡭᓺ54Î஻ÏÐ!¦©ª«FÏÐÒÏÐÒÏÐÒÏÐÒÏÐÒ᪆F⚪ὃ¯Ḅ>-஺1)Java/ËÌ-ᨵÓÔ´F1ஹÕÖjava.lang.Thread²;2ஹ×ØÙ»Runnable,{Ù»Ûܵ´voidrun()஺ÝÞ“publicclassJava_2extends________஻à&“Thread”஺2)ráµ-â᡻àãᵨ¸Ḅstart஺´஺ÝÞ?;“à&"start()”஺ᐹC-.᝞EF//*********Found********publicclassJava_2extendsThread

96publicstaticvoidmain(Stringargs[])(Java_2t=newJava_2();//*********Found********t.start();}publicvoidrun()(inti=0;while(true)(System.out.printin("ÏÐÒ”);if(i++==4)break;}System,out.printlnO;cdeFJAVAhᑖ/èᓫàᵨ34ஹnoᵨNetBeansᡭrὃtᦻvᜳEḄ⚗yJava_2,{⚗y/Ḅ|-.ᦻvJava_2.java>}~᦮Ḅnᙠ"஻*********Foiind*********"EḄEᑜᙢ&ᐭᑁᯠᑤ◀Eᑜnᑤ◀ᡈᦋᐸᨵᑁ஺}ᦋ1ᨵᦻvḄᦻv¡¢y£஺⚪Ḅ⌕:>FᙠApp1et/êë4µ4Î"He11o!”஺¦©ª«Fi"#ᘤ-Java_2.dassAppletHello!Hello!Hello!Hello!஺᪆F⚪ὃ¯Ḅ>JavaAppleto1)JavaApplet¿À>java,applet.Appletᡈjavax.swing.JAppletḄí²஺ÝÞ"publicclassJava_2"à&"extendsApplet"ᡈ"extendsjavax.swing.JApplet”(⚪/Ḅ-.¥îᨵᵨimportᐵïᐭᒹjavax.swing,ᦑñᵨJApplet²◤⌕ᢣᐸᡠᙠḄᒹḄᒹ)஺

972)AppletôHTMLᦻ᫏/øùúᦪûüoᵨgetParameter(StringparamName)´Ã⚪ḄHTMLᦻ᫏/ᨵþṹ“ீPARAMNAME=numVALUE—4஻>஻num஻4஻Ḅᦪ!"#$%“Strings=getParameter();"23""num""஺ᐹ678᝞:importjava.awt.*;importjava,applet.*;//*********Found********publicclassJava2extendsApplet(-intnum;publicvoidinit()(//*********Found********Strings=getParameter("num");஻MhtmlᦻPQRSᦪnum=Integer,parselnt(s);}publicvoidpaint(Graphicsg)(for(inti=0;i

98-1□!x|*+,-.ᡂ0?¶᪆⚪ὃ¸ḄvSwing᪀PªAWTQḄ¼Pᜐᳮ஺1)ÀJava_2ÁÂActionListenerÃ¥ᦑÅᢥ©b{ƼPÇÈᘤÊËᵨÌṹb.addActionListener(this)!"#%"0(this);“23"b.addActionListener”஺2)M#$%ḄÌṹ(஻(tf);஻®ᦻ᪾ÏÐᑮ¤¥Q஻){|ᩭÓt%23"f.add”஺ᐹ678᝞:importjava.awt.*;importjava.awt.event.*;importjava.util.*;publicclassJava2implementsActionListener{Framef;Buttonb;TextFieldtf;publicJava_2(){f=newFrame("ShowWords");f.setLayout(newFlowLayout());f.setSize(400,100);஻{Æᐵؤ¥ḄÇÈᘤf.addWindowListener(newWindowAdapter(){publicvoidwindowClosing(WindowEvente){System,exit(0);})Úb=newButton("¢£ÛÜÝ”)Ú//*********Found********b.addActionListener(this);஻Åᢥ©{ÆÇÈᘤf.add(b);tf=newTextField(30);//*********Found********f.add(tf);஻®ᦻ᪾ÏÐᑮ¤¥Q

99f.setVisible(true);publicstaticvoidmain(String[]args){Java_2t=newJava_2();}publicvoidactionPerformed(ActionEvente){tf.setText("¯°ᡂ²!");_`aJAVAbᑖ/dᓫ2ᵨ36ஹijᵨNetBeansᡭmὃoᦻPᜳ:Ḅ⚗rJava_2,t⚗rQḄu78ᦻPJava_2.javavwx᦮Ḅ]iᙠ{|}"஻*********Fcáund*********":}~Ḅ:ᑜᙢ3ᐭᑁᯠᑤ◀:ᑜiᑤ◀{|}ᡈᦋᐸᨵ~ᑁ஺wᦋᨵᦻPḄᦻPr஺⚪Ḅ⌕¡vi▅ãJava_2.java2ᵨÁäxᡂ78åæ}çè112123123412345123456¶᪆⚪ὃ¸Ḅvéêᦪëªìí~஺ᙠJavaQÁÂḄᡠîéêᦪëÁ▭ðvᵫêᦪë஻òÃ஻ᡂḄ஻ᦪëḄᦪë“஺$êᦪëóôḄõötypearrayName[][]Úᡈtype÷□arrayNameÚùtypevᦪëÀúarrayNamevᦪëá஺ûêᦪëüýᙠóôþᦪëᐗᨵᑖᑁ⌕ᓄḄᐗ஺ᓄᦪᨵ!1ஹ☟᝱ᓄ!ᓽᙠ()ᦪḄ*+ᑖᑁ஺2ஹ-᝱ᓄ!./012ᑖᡈ4ᨬ6712ᑖ஺᪷9⚪;.<=(ᦪ>6@ᑡᦪ41ᑮ6CD⌴F⌱HIᵨ-᝱ᓄᦑL஻int[6]T஻஺ᯠᵫforZ[\ᑴᦪᐗḄ^_`^_ᐗab\ᑴᙠᦪ

100cdeᑁf2gforZ[\ᑴḄh@ᦪḄ^_ᡠ!

101ᡭᓺ᦮ᦪ-1□!ᐭ᦮ᦪ32ᦪḄᑴ⊤00000000000000000000000000100000µ᪆!j⚪ὃ·Ḅh¸ᑏº»ᵨᡝ½☢஺”output.setEditable(false);”ᢣ(ᔠ᪾h☟᝱ᔠ᪾,ᐸ◤⌕IᵨaddÇᐸÈÉᘤv஺j⚪vᡃÌÍÎÏ—ÑTÒ”publicclassJava_3extendsJFrameÓ>ÔgÑTÈÉÏ2gÑTÕÖ×zEaddWindowListener(newWindowAdapter()...“஺ÙᡃÌÈÉḄÔgÑTÕÖᘤÚ⌕ÕÖÏÑTᐵÜ“publicvoidwindowClosing(WindowEvente)...”Ý஺ᙠÑTᐵÜÝvᡃÌ⌨_Ï᦮gᵨmn"System.exit(0);“஺ᐹlmn᝞p!importjava.awt.*;importjava.awt.event.*;importjavax.swing.*;publicclassJava3extendsJFrame{publicJava3(){super("ᡭᓺáâã᦮ᦪä");Containerc=getContentPane();c.setLayout(newFlowLayout());c.add(newJLabel("^ᐭ᦮ᦪ!”))åfinalJTextFieldoutput=newJTextField(33);JTextFieldinput=newJTextField(10);input.addActionListener(newActionListener(){publicvoidactionPerformed(ActionEvente){intval=Integer.parselnt(e.getActionCommand());output.setText(getBits(val));)))åc.add(input);

102c.add(newJLabel("ᦪḄðᑴä⊤òh"));output.setEditable(false);//*********Found********c.add(output);setSize(720,70);show();}privateStringgetBits(intvalue){intdisplayMask=1<<31;StringBufferbuf=newStringBuffer(35);for(intc=1;c<=32;c++){buf.append((value&displayMask)==0?'O':'T);value<<=1;if(c%8==0)buf.append('')returnbuf.toStringO;)publicstaticvoidmain(Stringargs[]){Java_3app=newJava_3();app.addWindowListener(newWindowAdapter(){//*********Found********publicvoidwindowClosing(WindowEvente){System.exit(0);)})<}}=>?@JAVABᑖ/DᔠFᵨ38ஹIJᵨNetBeansᡭMὃOᦻQᜳSḄ⚗VJava_2,X⚗VYḄZ[\ᦻQJava_2.java^_`᦮Ḅbᓫᙠefg”11**********Found**********"FigjkḄSᑜmᙢopᐭrsᑁ

103ubᯠwᑤ◀SᑜmbIzᑤ◀efgᡈᦋ}ᐸᨵjkᑁu஺_ᦋᨵᦻQḄᦻQV஺⚪Ḅ⌕^@▅Java_2.java[\bᯠw`ᡂ[\g஺ᡠ@ᢥ⌨஺᪆@⚪¢⌕ὃ£Ḅ^¤¥ᘤ஺§Q¤¥ὅ©ª¤¥◤⌕©ª"ActionListener”¬bᡠ®¯i°±p“implements”஺JavaḄ³´ᵨᡝ¶☢^§Q¸}Ḅb¹ᵫᔜ¼ᔜ᪵Ḅ¤¥ᘤ(Listener)¾¿ᣓᣍᔜ¼§Q஺ÂÃᵫÄQÅÆÇḄi°addXXXXXListenerḄoÈᩭ`ᡂÊˤ¥ᘤ஺ÌÍÊËḄActionListener¤¥ὅ^ᜐᳮ}ЧQ஺ѧQÒObÓÒḄ§QÔÕÖ§QḄ¤¥ὅ¤¥ᑮbÓÒActionListenerÅḄactionPerformed(ActionEvente)oÈØF}ЧQbjkSystem.exit(0);ᵨÙrÃ⌨[\஺ᐹÛ[\᝞S@importjava.awt.*;importjava.awt.event.*;//*********Found********publicclassJava2extendsFrameimplementsActionListener{publicstaticvoidmain(Stringargs[]){Java_2fr=newJava_2(“Test");fr.setSize(200,200);fr.setLayout(newGridLayout(2,1));Buttonb=newButton("⌨");//*********Found********

104b.addActionListener(newJava2());fr.add(b);fr.setVisible(true);}publicvoidactionPerformed(ActionEvente){System,exit(0);}publicJava_2(Stringstr){super(str);}publicJava_2(){=>?@JAVABᑖ/ÞᓫFᵨ39ஹIJᵨNetBeansᡭMὃOᦻQᜳSḄ⚗VJava_2,X⚗VYḄZ[\ᦻQJava_2.java^_`᦮Ḅ[Iᙠefg"஻*********Fáâund*********"SigjkḄSᑜmᙢopᐭrsᑁubᯠwᑤ◀SᑜmbIzᑤ◀efgᡈᦋ}ᐸᨵjkᑁu஺_ᦋᨵᦻQḄᦻQV஺⚪Ḅ⌕^@ãäåæᦪÄÔᐸᐗéê஺g@1111222233334444᪆@⚪ὃ£Ḅ^åæᦪÄḄê஺⚪✌ᐜîïði°ñgñᑡḄåæᦪÄaMatrix,ᯠwÂóôᝅḄforö÷ᢥiîḄøùÔᐸêᑮúûü஺᜜þforö÷ÿᑴḄᦪaMatrix.lengthᦪᓽ᜜Ḅᦪ4!ᙠᑁfor&'(System.out.print/0ᦪḄᔜᐗ3ᐸᐗ35ᵫaMatrix[i][j]ᩭ⊤<=>/?@"aMatrix[i][j]"஺ᐹDEF᝞HpublicclassJava2publicstaticvoidmain(String[]args)

105int[][]aMatrix={{1,1,1,1},{2,2,2,2},{3,3,3,3},{4,4,4,4});inti=0;஻Z[intj=0;஻Z[//*********Found********for(i=0;iீaMatrix.length;i++)(for(j=0;j

106⌕ÇÈÉwindowsDÊyḄËÌÍÎÇÈWindowListenerÏ®ᦑ>?m@WindowListenerLᙠJava&ᡠᨵÑ᝞ᢥ«ᦻ¤᪾ÓÔḄÕyÍÎ⌕¢ᑮ×Frame&ᵫH☢ḄØṹf.add(be,"South")dfmÚFrameḄÇÛᦑ>/?m@newFrame()LᵫÜ⌕ᙠD°¢ÝÞ×ᢥ«ßᑖàÚ"East","South","North","West"¡“Center”,ᐸáÞ×ᢥ«ᙠØṹ&âãᡠ´ÍÎ⌕âã"East”ᢥ«,ᦑ>ä?m@"East",>Þ?ÅÝFrameḄåឋ´ᵨSetVisibleçᐸèᦪÚéêë5ÚtrueÅÝåᔲᑣÚåᦑ¤?m@true஺ᐹDEF᝞Himportjava.awt.*;importjava.awt.event.*;//*********Found********publicclassJava3implementsActionListener,WindowListener(-Framef;Buttonbe,bw,bs,bn,be;publicvoidcreate()t//*********Found********f=newFrame("Exittest");be=newButton("East");//*********Found********bw=newButton("West");bs=newButton("South");bn=newButton("North");bc=newButton("Exit");//*********Found********f.add(be,"East");f.add(bw,"West");f.add(bs,"South");f.add(bn,"North");f.add(be,"Center");be.addActionListener(this);஻Úᢥ«îËÌᘤf.addWindowListener(this);஻Úᢥ«îËÌᘤ

107f.setSize(200,200);//*********Found********f.setVisible(true);publicstaticvoidmain(Stringargs[])(Java_3fa=newJava_3();fa.create();publicvoidactionPerformed(ActionEvente)System.exit(0);஻ÇÈ®ᐵ³óô)!publicvoidwindowOpened(WindowEvente){}publicvoidwindowClosing(WindowEvente)System.exit(0);஻ÇÈ®ᐵ³óôö!publicvoidwindowClosed(WindowEvente){}publicvoidwindowlconified(WindowEvente){}publicvoidwindowDeiconified(WindowEvente){}publicvoidwindowActivated(WindowEvente){}publicvoidwindowDeactivated(WindowEvente){}defJAVAiᑖ/øᔠmᵨ41ஹpqᵨNetBeansᡭuὃwᦻyᜳHḄ⚗|Java_3,~⚗|&ḄEFᦻyJava_3.java᦮Ḅúᙠ"஻**********Found**********”HḄHᑜᙢ@ᐭᑁᯠᑤ◀Hᑜpᑤ◀ᡈᦋᐸᨵᑁ஺ᦋZᨵᦻyḄᦻy¡¢|£஺¤⚪Ḅ⌕ᙠf§"EXPTᢥ«¬®¯°±Ḅᐵ³ᢥ«´ᐵ³®஺EFµḄ¶☢᝞¸ᡠ<஺

108º᪆¤⚪ὃ¼ḄAWT¸¿ᓄᵨᡝ¶☢(GUI)EFÅÆ஺ÊyËÌὅÇÈËÌ◤⌕ÇÈᐸÉmÏ®ýþÿᵨᑮᡠ◤⌕WindowListener஺ᙠAWTᑭᵨ᪀⌼#$ᩭ&'ᓄ)*+஺,-System.exit(0);89:;<=⌨?஺ᐹ):;᝞BCimportjava.awt.importjava.awt.event.*;//*********Found********publicclassJava_3implementsActionListener,WindowListenerFramef;Buttonbe,bw,bs,bn,be;publicvoidcreate()f=newFrame(Z/Exittest");be=newButton("East");bw=newButton("West");bs=newButton("South");bn=newButton("North");bc=newButton("Exit");f.add(be,"East");f.add(bw,"West");f.add(bs,"South");f.add(bn,"North");f.add(be,"Center");be.addActionListener(this);஻ᢥ^_`ᘤ

109f.addWindowListener(this);f.setSize(200,200);f.setVisible(true);publicstaticvoidmain(Stringargs[])(//*********Found********Java_3fa=newJava_3();fa.create();}publicvoidactionPerformed(ActionEvente)//*********Found********System.exit(0);஻ᐵkl8}publicvoidwindowOpened(WindowEvente){}publicvoidwindowClosing(WindowEvente)//*********Found********System.exit(0);஻ᐵkl8publicvoidwindowClosed(WindowEvente){}publicvoidwindowlconified(WindowEvente){}publicvoidwindowDeiconified(WindowEvente){}publicvoidwindowActivated(WindowEvente){}publicvoidwindowDeactivated(WindowEvente){}pqrCJAVAsᑖ/uᔠwᵨ42ஹz9ᵨNetBeansᡭ|ὃ~ᦻᜳBḄ⚗Java_2,⚗Ḅ:;ᦻJava_2.java᦮Ḅᓫᙠ_஻஻**********Found**********"B,-ḄBᑜᙢ#ᐭ<ᑁᯠᑤ◀Bᑜzᑤ◀_ᡈᦋᐸ¡ᨵ,-ᑁ஺£¤¥¦ᦋ§¨ᨵᦻḄᦻ©ª£«¬஺⚪Ḅ⌕¯C▅±Java_2.java:;ᡂ:;Ḅ³ᑏ஺µ¶·C

110123456123451234123121»᪆•C⚪ὃ¾Ḅ¿ÀᦪÂÃÄÅ,-஺ᙠJavaḄᡠÆ¿ÀᦪÂ▭ÈᵫÀᦪÂ஻Ê஻ᡂḄ஻ᦪÂḄᦪÂᵫforÄÅËᑴᦪÂᐗÎḄÏ?ÐÏ?ᐗÎÑÒËᑴᙠᦪÂÓÔÕᑁÖ×ØforÄÅËᑴḄᑡḄÏ?ᡠÚ“aTriangle[i].length”஺ᵫÝ⌕Ï?᦮ØᦪÂᡠÖ×ØÚw஻aTriangle[i][k]஻஺ᐹ):;᝞BCpublicclassJava2{publicstaticvoidmain(String[]args){int[][]aTriangle=newint[6][];inti=0;intj=6;intk=0;for(i=0;i

11143ஹz9ᵨNetBeansᡭ|ὃ~ᦻᜳBḄ⚗Javaí⚗Ḅ:;ᦻJavaí,java᦮Ḅᓫᙠ_"஻**********Found**********"B,-ḄBᑜᙢ#ᐭ<ᑁᯠᑤ◀Bᑜzᑤ◀_ᡈᦋᐸ¡ᨵ,-ᑁ஺£¤¥¦ᦋ§¨ᨵᦻḄᦻ©ª£«¬஺⚪Ḅ⌕¯CᗐJavaí,javaᦻïðµ9:;Ï?¶·᝞BCᘤ-Java_l.classApplet23ᩭ56Java78ὃ9.»᪆C⚪ὃ¾ḄAppletḄ9ᵨ஺ᙠHTMLᦻ᫏ôõApplet᪗÷ᢣùJavaú:;ᙠApplet᪗÷codeᵨᩭᢣùJavaú:;ᦻêcodebaseᵨᩭᢣùJavaú:;£«Ḅûü஺ᙠHTMLᦻ᫏ôõparam᪗÷ᔣJavaú:;þ⌴ᦪ஺ᙠparam᪗nameឋᵨᩭᢣJavaḄᦪvalueᵨᩭᢣᦪ஺᜜⚪"ὃ$%Graphics,Ḅ-ᵨ஺Graphics,./%012ᙊ4᪵Ḅ6ᓫ89,:Ḅ;<᜜=./%>?ᦻḄ;<஺A%Bᑴ⌕EᨵGHᨵᦔḄJKL᛻(ᵫGraphics,ḄGHPQ⊤?)஺TAGraphics,UGHVWḄX,YZ[\]^PQᓄ஺GHᐹaḄPQ^GHbcdefgᯠijAGHᦪk⌴mᑮGHbcḄupdate()2paint();<஺4qH;?ᦻḄPQ}qHᢣᦻᙶ᪗Ḅ᦮:jAᦪ஺publicvoidpaint(Graphicsg)g.drawString"Javaὃ“25,25;

112☢ᑡḄ¢ṹ>?%ᙠpaint();<ᑁ¤ᵨdrawString();<஺4HQ¢ṹᙠpaint();<Ḅbc>?஻Javaὃ!஻x2yᙶ᪗ᢣ¨ᦻ᪾ª«¬®஺Applet᝞«:importjava,applet.*;importjava.awt.Graphics;//*********Found********publicclassJava_lextendsApplet{publicvoidpaint(Graphicsg)(//*********Found********g.drawString(஻ᩭJava±²ὃ!”25,25);HTML¢ṹ᝞«´µ¶·´JAVAbᑖ/X¹j44ஹ»¤ᵨNetBeansᡭὃ½ᦻcᜳ«Ḅ⚗ÀJava_2,Á⚗ÀḄÂᦻcJava_2.javaUZÃ᦮Ḅ⍝ᙠÅÆÇ“II**********Found**********"FGDZÈḄ«ᑜ1ᙢ;ËᐭÍÎᑁÏᯠiᑤ◀«ᑜ1»Òᑤ◀ÅÆÇᡈᦋÕᐸ×Øᨵ±ÈᑁÏ஺ÙÚÛZÜᦋÝÞᨵᦻcḄᦻc}ÙßÀà஺⚪Ḅ⌕EU´▅âJava_2.javaÁUᙠFramedeGHᢥä஺ÃᡂfæÇçÜèéA´ᢥ஻Î஻ᢥäᐵëìífèîḄæÇ஺ï᪆´⚪ὃ$ḄUñòḄó2ôcõö஺

113óñòḄK÷A´øùúᩗ▲ýclass,_extends᱄,ý஺ᦑ"extends”஺JavaḄᵨᡝ☢Ḅᵫᔜᔜ᪵Ḅᘤ(Listener)ᣓᣍᔜ஺!ᵫ"#$%Ḅ&addXXXXXListenerḄ'(ᩭ*ᡂ,-ᘤ஺./,-ḄActionListenerὅᜐᳮ3஺456785Ḅ9:;Ḅὅᑮ85ActionListener#ḄactionPerformed(ActionEvente)'(=3>?System.exit(0);ᵨ@A!⌨CDE஺ᐹGDE᝞IJimportjava.awt.*;importjava.awt.event.*;//*********Found********publicclassJava2extendsFrameimplementsActionListener{publicstaticvoidmain(Stringargs_`){Java_2fr=newJava_2("Hello!”);fr.setLayout(newFlowLayout());fr.setSize(200,100);fr.setBackground(Color,blue);Buttonb=newButton("MN")L//*********Found********b.addActionListener(newJava2());fr.add(b);fr.setVisible(true);}publicvoidactionPerformed(ActionEvente){System,exit(0);)publicJava_2(Stringstr){super(str);}publicJava2(){PQRJJAVASᑖ/Vᓫᵨ

11445ஹ\]ᵨNetBeansᡭfὃ6ᦻᜳIḄ⚗kJava_3,q⚗krḄsDEᦻJava_3.javav*᦮Ḅᓫᙠyz{"஻**********Found**********"I{>?ḄIᑜᙢ'ᐭAMᑁᯠᑤ◀Iᑜ\ᑤ◀yz{ᡈᦋᐸᨵ>?ᑁ஺7vᦋᨵᦻḄᦻk஺⚪Ḅ⌕J▅¡Java_3.javaDEqDEᑭᵨ£¤#ᵨ¥¦஺*ᡂDE§{ᡠ©ª«J¬®6¯°:²³´µ®¶᪆J⚪ὃ¸Ḅ£¤#¹'(஺£¤#¯º»²ᩭ¼½#¾¿Ḅ#஺£¤#!ÀᒹÂ&ᡈÃ&£¤'((Äᨵ'(ÅÆÇᨵ'(G)஺ᡃÉÊË᪷Í.RPabstract஺Ñ«getDescription()ᙠ£¤#Personr'(ÅÆËᑖשØÇᨵ'(G஺Student#¾¿£¤#Person#¥ÚᐸNÛḄ£¤'(஺NÛ¾¿ḄÜ«JÝÞßᩗ▲âclass#Ýextends᱄#â஺ᐹGDE᝞IJimportjava.text.*;publicclassJava_3{publicstaticvoidmain(StringÝâargs){Personp=newStudent("¬"”²³´µ®”)ìSystem,out.printin(p.getNameO+”,"+p.getDescription());abstractclassPerson{publicPerson(Stringn){name=n;}஻*********Found********publicabstractStringgetDescription();publicStringgetName(){returnname;

115privateStringname;//*********Found********classStudentextendsPerson{publicStudent(Stringn,Stringm){super(n);major=m;}//*********Found********publicStringgetDescriptionO{return”®6¯°:"+major;}privateStringmajor;)PQRJJAVASᑖ/óᔠᵨ46ஹ\]ᵨNetBeansᡭfὃ6ᦻᜳIḄ⚗kJava_2,q⚗krḄsDEᦻJava_2.javav*᦮ḄÅᙠyz{"஻**********Found**********”I{>?ḄIᑜᙢ'ᐭAMᑁᯠᑤ◀Iᑜ\ᑤ◀yz{ᡈᦋᐸᨵ>?ᑁ஺7vᦋᨵᦻḄᦻk஺⚪Ḅ⌕J▅¡Java_2.javaDEqDE9÷ø&ùú஺*ᡂDE§{ᡠ©û«JfAWTTestüý6n.þ2|Button3|RÿḄᐵᢥᐵḄ஺᪆⚪ὃḄ᪀⌼!"#$%஺᪀⌼Ḅ&'()&*+,☢.ᨵ01)23456ᱯ8Ḅᐸ:⌕<ᵨ>?ᓄABḄᡂᕒEF஺ᦑH5IJ஻Java_2஻஺JavaḄQRᵨᡝT☢"#UVḄWᵫᔜ6ᔜ᪵Ḅ$%[“Listener”efᣓᣍᔜ6"#஺ijᵫk#)lmḄ5naddXXXXXListenerḄᩭrᡂst$%ᘤ஺vwSystem,exit(0);j⌨஺ᐹ᝞importjava.awt.*;

116importjava.awt.event.*;publicclassJava_2extendsFrameimplementsWindowListener{//*********Found********publicJava_2(){setLayout(newFlowLayout());add(newButton(''Button1"));add(newButton("2"));add(newButton(''Button3"));//*********Found********addWindowListener(this);publicstaticvoidmain(Stringargs[]){Java_2window=newJava_2();window.setTitle("AWTTest");window.pack();window.show();publicvoidwindowClosing(WindowEvente){System,exit(0);publicvoidwindowClosed(WindowEvente){}publicvoidwindowOpened(WindowEvente){}publicvoidwindowlconified(WindowEvente){}publicvoidwindowDeiconified(WindowEvente){}publicvoidwindowActivated(WindowEvente){}publicvoidwindowDeactivated(WindowEvente){}¬®JAVA°ᑖ/²ᓫ´ᵨ47ஹ¸ᵨNetBeansᡭ»ὃ¼ᦻ#ᜳḄ⚗ÀJavaÁ⚗ÀÂḄÃᦻ#JavaÁ,javaÄr᦮ḄᓫᙠÇÈ஻஻**********Found**********"5vwḄᑜÊᙢJᐭÍᑁÏᯠÑᑤ◀ᑜʸÔᑤ◀ÇÈᡈᦋVᐸ×ØᨵvwᑁÏ஺ÙÚÛÄÜᦋEÝᨵᦻ#Ḅᦻ#&ÞÙßÀà஺⚪Ḅ⌕áᢥᑡãäᡭᓺ

117æçèétJavaὃêÇëᙠìḄ'íîÂÄïᨵIã஺᪆•⚪ὃḄìãä஺✌ᐜóôJavaÂìᑮö÷vwᵨSystem.out.println();vwø᝞System.out.printin("æç”)ᑣ⊤ûᙠö÷ìæç஺ᐸüóôý4'íḄᵨ஺ý4'íþÿᩨ(\)ᜮ᝞஻

118஻⊤ᣚ஺ᐹ᝞஻ᵨᡭᓺ!publicclassJava1(-publicstaticvoidmain(Stringargs[])(//*********Found********System.out.println("#$

119%

120&'

121Java

122ὃ)“);,-.JAVA/ᑖ/234548ஹ89ᵨNetBeansᡭὃ:ᦻ<ᜳḄ⚗@Java_2,A⚗@BḄCᦻ

123Testing-In]xPleasepressme!᪆3⚪⌕ὃḄDrsᘤ஺JavaḄᵨᡝ☢D<]Ḅ{|ᵫᔜᔜ᪵ḄrsᘤListenerᣓᣍᔜ<஺¡ᵫ¢

124));//*********Found********fr.setVisible(true);classHandleButtonimplementsActionListener(publicvoidactionPerformed(ActionEvente){System,out.printin(^Thebuttonispressed!/z);}),-.JAVA/ᑖ/åᓫçᵨ49ஹ89ᵨNetBeansᡭὃ:ᦻ<ᜳḄ⚗@JavaèA⚗@BḄCᦻ

1254!Ḅ0156Ḅ78ᙠ!$9:&$'();<⌕ᵨnewXxxxO'()ᡠᨵ!Ḅ0156ᐳG!)ᐸḄ஺ᦑIJKLMNḄx,y,zᙳ01)TUᦪW஻Variablev=new______b'Ḅdᵨ'(VariableḄ

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。
最近更新
更多
大家都在看
近期热门
关闭