首页
试卷库
试题库
当前位置:
X题卡
>
所有题目
>
题目详情
在考生文件夹下的“samp1.accdb”数据库文件中已建立表对象“tStud”和“tScore”、宏对象“mTest”和窗体“fTest”。请按以下要求,完成各种操作。 冻结表“tStud”...
查看本题答案
包含此试题的试卷
计算机等级考试《问答集》真题及答案
点击查看
你可能感兴趣的试题
在考生文件夹下存在两个数据库文件和一个照片文件数据库文件名分别为samp1.accdb和dResea
在考生文件夹下有一个Excel文件Test.xlsx和一个数据库文件samp1.accdb在s
在考生文件夹下有文本文件tTest.txt和数据库文件samp1.accdbsamp1.accdb中
在考生文件夹下的samp1.accdb数据库文件中已建立表对象tVisitor同时在考生文件夹
在考生文件夹下有数据库文件samp1.accdb和Excel文件Stab.xlsxsamp1.
在考生文件夹下有一个Excel文件Test.xlsx和一个数据库文件samp1.accdbsamp1
在考生文件夹下有数据库文件samp1.accdb和Excel文件Stab.xlsxsamp1.
在考生文件夹下存在两个数据库文件和一个照片文件数据库文件名分别为samp1.mdb和dResearc
在考生文件夹下的samp1.accdb数据库文件中已建立表对象tVisitor同时在考生文件夹
在考生文件夹下的samp1.accdb数据库文件中已建立表对象tVisitor同时在考生文件夹
在考生文件夹下的samp1.accdb数据库文件中已建立表对象tVisitor同时在考生文件夹下还有
在考生文件夹下的samp1.accdb数据库文件中已建立表对象tVisitor同时在考生文件夹
在考生文件夹下samp1.accdb数据库文件中已建立两个表对象名为员工表和部门表试按以下要求完成表
在考生文件夹下的samp1.mdb数据库文件中已建立了表对象tEmp请按以下操作的要求完成对表tEm
在考生文件夹下的samp1.accdb数据库文件中已建立表对象tVisitor同时在考生文件夹
在考生文件夹下已有samp0.mdb和samp1.mdb数据库文件samp0.mdb中已建立了表对象
在考生文件夹下的samp1.mdb数据库文件中已建立了表对象tVisitor同时在考生文件夹下还有e
在考生文件夹下存在一个数据库文件samp1.mdb其中已建立好表对象tEmp试按以下要求完成各种操作
在考生文件夹下的samp1.accdb数据库文件中已建立两个表对象名为职工表和部门表请按以下要求顺序
在考生文件夹下存在一个数据库文件samp1.mdb其中已建立好表对象tEmp试按以下要求完成各
热门试题
更多
下列代码的执行结果是______publicclassExpressionpublicstaticvoidmainStringarga[]Intv1=10v2=99v3=0;System.out.prIntlnv1<0v2/v3==3;
本题利用递归方法求前n个自然数的和n=10publicclassjava1publicstaticvoidmainString[]argsintsum=add10;System.out.println1+2++9+10=+sum;pubhcstaticintadd______ifn==1______;else______;
本题的功能是获得字符串China的长度和最后一个字符并将这些信息打印出来publicclassjava1publicstaticvoidrnainString[]args______;str=China;intn=0;______;charc;______;System.out.println字符串中共有+n+个字符最后一个字符是:+c;
本题将数组arrA中的元素按逆序存储在另外一个相同长度的数组arrB中publicclassjava1publicstaticvoidmainString[]argsint[]arrA=138426907;int[]arrB=______;inti=0;intj=______;fori=0;i<arrA.length;i++arrB[j]=arrA[i];______;System.out.printlnarrm:+arrB:;fori=0;i<arrA.length;i++System.out.printlnarrA[i]++arrB[i];
本题中数组arr中存储了学生的成绩分别为87455678675691628263程序的功能是计算低于平均分的人数并打印输出结果请在程序空缺部分填写适当内容使程序能正确运行publicclassjava1publicstaticvoidmainString[]argsintarr[]=56917867568745628263;intnum=arr.length;inti=0;intsumScore=0;intsumNum=0;doubleaverage;whilei<numsumScore=sumScore+arr[i];______;average=______;i=0;doifarr[i]<averagesumNum++;i++;while______;System.out.printlnaverage:+average+belowsaverage:+sumNum;
本题中用表格表现某个月的月历其中标题是从Sunday到Saturday表格中的各项是可以修改的importjava.awt.*;importjava.awt.event.*;importjavax.swing.*;importjavax.swing.table.*;publicclassjava2publicstaticvoidmainString[]argstryUIManager.setLookAndFeelUIManagergetSystemLookAndFeelClassName;catchExceptioneJFrameframe=newCalendarTableFrame;frame.setDefaultCloseOperationJFrame.EXIT_ON_CLOSE;frame.show;classCalendarTableFrameextendsJFrameprivatestaticfinalintWIDTH=500;privatestaticfinalintHEIGHT=150;private______cells=nullnullnullnewIntegerinewInteger2newInteger3newInteger4newInteger5newInteger6newInteger7newInteger8newInteger9newInteger10newInteger11newInteger12newInteger13newInteger14newInteger15newInteger16newInteger17newInteger18newInteger19newInteger20newInteger21newInteger22newInteger23newInteger24newInteger25newInteger26newInteger27newInteger28newInteger29newInteger30newInteger31nullprivateString[]columnNames=SundayMondayTuesdayWednesdayThursdayFridaySaturdaypublicCalendarTableFramesetTitlejava2;setSizeWIDTHHEIGHTJTabletable=new______;getContentPane.addnewJScrollPanetableBorderLayout.CENTER;
本题是一个Applet它的功能是在窗口上添加12×12个标签并且横向和纵向标签的颜色为黑白相间importjava.applet.*;importjava.awt.*;importjava.awt.event.*;publicclassjava2extendsAppletGridLayoutgrid;publicvoidinitgrid=newGridLayout1212;setLayoutgrid;Label______=newLabel[12][12];forinti=0;i<12;i++forintj=0;j<12;j++label[i][j]=______;ifi+j%2==0label[i][j].setBackgroundColor.black;elselabel[i][j].setBackgroundColor.white;addlabelEi][j];
本题是一个Applet页面中有10个按钮名称从O~9用鼠标任意单击其中一个按钮后通过键盘上的上下左右键可以控制按钮在窗口中移动importjava.applet.*;importjava.awt.*;importjava.awt.event.*;publicclassjava2extendsApplet______Buttonb[]=newButton[lO];intxy;publicvoidinitforinti=0;i<=9;i++b[i]=newButton+i;b[i].addKeyListenerthis;addb[i];publicvoid______Buttonbutton=Buttone.getSource;x=buttongetBoundsx;y=buttongetBoundsy;ife.getKeyCode==KeyEvent.VK_UPy=y-2;ify<=0y=0;buttonsetgocationxy;elseife.getKeyCode==KeyEvent.VK_DOWNy=y+2;ify>=300y=300;button.setLocationxy;elseife.getKeyCode==KeyEvent.VK_LEFTx=x-2;ifx<=0x=0;button.setLocationxy;elseife.getKeyCode==KeyEvent.VK_RIGHTx=x+2;ifx>=300x=300;button.setLocationxy;publicvoidkeyTypedKeyEventepublicvoidkeyReleasedKeyEvente
本题的功能是用文本框来设定表盘中指针的位置窗口中有一个画板和两个文本框画板中绘制了一个表盘和时针分针通过文本框分别设定时和分表盘中的时针和分针就会指到对应的位置上importjava.awt.*;importjava.awt.event.*;importjava.awt.geom.*;importjavax.swing.*;importjavax.swingevent.*;publicclassjava3publicstaticvoidmainString[]argsTextTestFrameframe=newTextTestFrame;frame.setDefaultCloseOperationJFrame.EXIT_ON_CLOSE;frame.show;classTextTestFrameextendsJFramepublicTextTestFramesetTitlejava3;setSizeDEFAULT_WIDTHDEFAULT_HEIGHT;ContainercontentPane=getContentPane;DocumentListenerlistener=newDocumentListen-er;JPanelpanel=newJPanel;hourField=newJTextField123;paneladdhourField;hourFieldgetDocument.addDocumentListenerthis;minuteField=newJTextField003;paneladdminuteField;minuteFieldgetDocumentaddDocumentListenerlistener;contentPaneaddpanelBorderLayout.SOUTH;clock=newClockPanel;contentPaneaddclockBorderLayout.CENTER;publicvoidsetClocktryinthours=Integer.parseInthourField.getText.trim;intminutes=Integer.parselntminuteFieldgetTexttrim;clocksetTimehoursminutes;catchNumberFormatExceptionepublicstaticfinalintDEFAULTWIDTH=300;publicstaticfinalintDEFAULT_HEIGHT=300;privateJTextFieldhourField;privateJTextFieldminuteField;privateClockPanelclock;privateclassclockFieldListenerextendsDocumentListenerpublicvoidinsertUpdateDocumentEventesetClock;publicvoidremoveUpdateDocumentEventesetClock;publicvoidchangedUpdateDocumentEventeclassClockPanelextendsJPanelpublicvoidpaintComponentGraphicsgsuperpaintComponentg;Graphics2Dg2=Graphics2Dg;Ellipse2Dcircle=newEllipse2D.Double002*RADIUS2*RADIUS;g2.drawcircle;doublehourAngle=Math.toRadians90-360*minutes/12*60;drawHandg2hourAngleHOUR_HAND_LENGTH;doubleminuteAngleMath.toRadians90-360*minutes/60drawHandg2minuteAngleMINUTE_HAND_LENGTH;publicvoiddrawHandGraphics2Dg2doubleangledoublehandLengthPoint2Dend=newPoint2D.DoubleRADIUS+handLength*Math.cosangleRADIUS-handLength*Math.sinangle;Point2Dcenter=newPoint2D.DoubleRADIUSRADIUSg2.drawnewLine2D.Doublecenterend;publicvoidsetTimeinthintmminutes=h*60+m;repaint;privatedoubleminutes=0;privatedoubleRADIUS=100;privatedoubleMINUTE_HAND_LENGTH=0.8*RADIUS;privatedoubleHOUR_HAND_LENGTH=0.6*RADIUS;
下列代码的编译或执行结果是______publicclassMyvalpublicstaticvoidmainstringargs[]MyValm=newMyVal;m.aMethod;publicvoidaMethodbooleanb[]=newBoolean[5];System.out.printlnbEO];
一棵二叉树的中序遍历结果为DBEAFC前序遍历结果为ABDECF则后序历结果为______
下列代码中的内部类名是______importjava.awt.event.*;lapoctjavax.swing.*;classTalkingClockpublicvoidstartintintervalfinalbooleanbeep
本题是一个Applet功能是用鼠标画不同颜色的图形页面中有5个按钮画红色图形画绿色图形画蓝色图形橡皮和清除单击前三个按钮中的一个按住鼠标左键或右键在面板中拖动就能画出对应颜色的线条单击橡皮按钮按住鼠标左键或右键在面板中拖动就能将面板中的图形擦除掉单击清除按钮就能将面板中所有的图形清除掉importjava.applet.*;importjava.awt.*;importjava.awt.event.*;publicclassjava3extendsAppletimplementsActionListenerintx-1y=-lrubberNote=0clearNote=0;Colorc=newColor25500;intcon=3;Buttonb_redb_blueb_greenb_clearb_quit;publicvoidinitaddMouseMotionListenerthis;b_red=newButton画红色图形;b_blue=newButton画蓝色图形;b_green=newButton画绿色图形;b_quit=newButton橡皮;bclear=newButton清除;addb_red;addb_green;addb_blue;addb_quit;addb_clear;b_red.addActionListenerthis;b_green.addActionListenerthis;b_blue.addActionListenerthis;b_quit.addActionListenerthis;b_clear.addActionListenerthis;publicvoidpaintifx!=-1&&y!=-1&&rubberNote==0&&clearNote==0g.setColorc;g.fillOvalxyconcon;elseifrubberNote==1&&clearNote==0g.clearRectxy1010;elseifclearNote==1&&rubberNote==0g.clearRect00getSize.widthgetSize.height;publicvoidmouseDraggedMouseEventex=inte.getX;y=inte.getY;repaint;publicvoidmouseMovedMouseEventepublicvoidupdateGraphicsgpaintg;publicvoidactionPerformedEventeife.getSource==b_redrubberNote=0;clearNote=0;c=newColor25500;elseife.getSource==bgreenrubberNote=0;clearNote=0;c=newColor02550;elseife.getSource==b_bluerubberNote=0;clearNote=0;c=newColor00255;ife.getSource==b_quitrubberNote=1;clearNote=0;ife.getSource==b_clearclearNote=1;rubberNote=0;repaint;
下列关于Applet的叙述中正确的是______
本题的功能是监听键盘敲击事件并将敲击的字符显示在标签上开始文字标签提示Pleasepressyourkeyboard!当按下键盘上的字符键文字标签就变为’*’ispressed!*为所按字母importjava.awt.*;importjava.awt.event.*;importjavax.swing.*;publicclassjava2extendsFrame______publicstaticvoidmainStringargs[]java2f=newjava2java2;Panelpan=newPanel;f.init;publicjava2Stringstrsuperstr;publicvoidinitaddWindowListenernewWindowAdapterpublicvoidwindowClosingWindowEventeSystem.exit0;;setSize200200;setLayoutnewFlowLayout;lab=newLabelPleasepressyourkeyboard!;addlab;addKeyListenerthis;setVisibletrue;publicvoidkeyTypedKeyEventelab.setText/’+______+/’ispressed!;repaint;publicvoidkeyPressedKeyEventepublicvoidkeyReleasedKeyEventeprivateLabellab;
Component类中用于刷新组件的方法是______
本题中通过菜单Connect显示一个对话框单击ok按钮后所填写的内容就会传回到主窗口并显示出来importjava.awt.*;importjava.awt.event.*;importjavax.swing.*;publicclassjava3extendsJFrameimplementsActionListenerpublicjava3setTitlejava3;setSize300300;addWindowListenernewWindowAdapterpublicvoidwindowClosingWindowEventeSystem.exit0;;JMenuBarmbar=newJMenuBar;setJMenuBarbar;JMenufileMenu=newJMenuFile;mbar.addfileMenu;connectItem=newJMenuItemConnect;connectltem.addActionListenerthis;fileMenu.addconnectItem;exitItem=newJMenuItemExit;exitItem.addActionListenerthis;fileMenu.addexitItem;publicvoidactionPerformedActionEventevtObjectsource=evt.getSource;ifsource==connectItemConnectInfotransfer=newConnectInfoyournamepw;ifdialog==nulldialog=newConnectDialogthis;ifdialog.showDialogtransferStringuname=transfer.username;Stringpwd=transfer.password;ContainercontentPane=getContentPane;contentPane.addnewJLabelusername=+uname+password=+pwdSouth;validate;elseifsource==exitItemSystem.exit0;publicstaticvoidmainString[]argsJFramef=newjava3;f.show;privateConnectDialogdialog=null;privateJMenuItemconnectltem;privateJMenuItemexitItem;classConnectlnfopublicStringusername;publicStringpassword;publicConneetInfoStringuStringpusername=u;password=p;classConnectDialogextendsJDialogimplementsActionListenerpublicConnectDialogsuperparentConnecttrue;ContainercontentPane=getContentPane;JPanelp1=newJPanel;p1.setLayoutnewGridLayout22;p1.addnewJLabelUsername:;p1.addusername=newJTextField;p1.addnewJLabelPassword:;p1.addpassword=newJPasswordFieldcontentPane.addCenterp1;Panelp2=newPanel;okButton=addButtonp2Ok;cancelButton=addButtonp2Cancel;contentPane.addSouthp2;setSize240120;JButtonaddButtonContainercStringnameJButtonbutton=newJButtonname;button.addActionListenerthis;c.addbutton;returnbutton;publicvoidactionPerformedActionEventevtObjectsource=evt.getSource;ifsource==okButtonok=true;setVisiblefalse;elseifsource==cancelButtonsetVisiblefaIse;publicvoidshowDialogConnectInfotransferusername.setTexttransfer.username;password.setTexttransfer.password;ok=false;show;ifoktransfer.username=usernamegetText;transfer.password=newStringpassword.getPassword;returnok;privateJTextFieldusername;privateJPasswordFieldpassword;privatebooleanok;privateJButtonokButton;privateJButtoncancelButton;
本题主窗口中包括一个文本框和一个文本域在上面的文本框中输入一个整数并按回车键就会在下面的文本域中显示该整数的平方值如果在文本框中输入的不是一个整数将弹出一个警告窗口importjava.awt.event.*;importjava.awt.*;importjavax.swing.JOptionPane;classDwindowextendsFrameimplementsActionListenerTextFieldinputNumber;TextAreashow;DwindowStringssupers;inputNumber=newTextField22;inputNumber.addActionListenerthis;show=newTextArea;addinputNumberBorderLayout.NORTH;addshowBorderLayout.CENTER;setBounds6060300300;setVisibletrue;validate;addWindowListenernewWindowAdapterpublicvoidwindowClosingWindowEventeSystem.exit0;;publicvoidactionPerformedActionEventebooleanboo=false;ife.getSource==inputNumberStrings=______;chara[]=s.toCharArray;forinti=0;i<a.length;i++if!Character.isDigita[i]boo=true;ifboo==trueJOptionPane.showMessageDialogthis您输入了非法字符警告对话框______;inputNumber.setTextnull;elseifboo==falseintnumber=Integer.parselnts;show.append/n+number+平方:+num-ber*number;publicclassjava2publicstaticvoidmainStringargs[]newDwindowjava2;
本题提取字符串chinaisagreatcountry.中的前5个字符生成一个新的字符串并将剩余字符组成另外一个新的字符串最后将两个新的字符串连接输出publicclassjava1publicstaticvoidmainString[]argsStringstr=Chinaisagreatcountry.;headstr=str.substring______;trailstr=str.substring______;System.out.printlnheadstr+trailstr
在下列代码的下面线处应填入的内容是______publicclassFirstSamplepublicstaticvoidmain______args[]System.out.println你好!;
本题中在下画线上填写代码指定变量b为字节型变量f为单精度实型变量l为64位整型publicclassjava1publicstaticvoidmainString[]args______b=49;______f=8.9f;______1=0xfedl;System.out.printlnb=+b;System.out.printlnf=+f;System.out.println1=+1;
下列关于Test类的定义中正确的是______
本题的功能是监听鼠标左右键的单击以及面板中滚动条的添加在窗口的画板中单击鼠标左键在单击的位置绘制一个圆当绘制的圆大于画板的大小时画板就添加滚动条在画板中单击鼠标右键则清除画板中的所有图形importjavax.swing.*;importjavax.swing.event.MouseInputAdapter;importjava.awt.*;importjava.awt.event.*;importjava.util.*;publicclassjava3extendsJPanelprivateDimensionsize;privateVectorobjects;privatefinalColorcolors[]=Color.redColor.blueColor.greenColor.orangeColor.cyanColor.magentaColor.darkGrayColor.yellow;privatefinalintcolor_n=colorslength;JPaneldrawingArea;publicjava3setOpaquetrue;size=newDimension00;objects=newVector;JLabelinstructionsLeft=newJLabel单击鼠标左键画圆.;JLabelinstructionsRight=newJLabel单击鼠标右键清空画板.;JPanelinstructionPanel=newJPanelnewGridLayout01;instructionPanel.addinstructionsLeft;instructionPanel.addinstruetionsRight;drawingArea=newJPanelprotectedvoidpaintComponentGraphiesgsuperpaintComponentg;Rectanglerect;forinti=0;i<objects.size;i++rect=Rectangleobjects.elementAti;g.setColorcolors[i%color_n];g.fillOvalrect.xrect.yrect.widthreet.height;;drawingArea.setBackgroundColor.white;drawingArea.addMouseListenernewMouseListener;JScrollPanescroller=newJScrollPanedrawingArea;scroller.setPreferredSizenewDimension200200;setLayoutnewBorderLayout;addinstructionPanelBorderLayout.NORTH;addscrollerBorderLayout.CENTER;classMyMouseListenerextendsmouselnputAdapterfinalintW=100;finalintH=100;publicvoidmouseReleasedMouseEventebooleanchanged=false;ifSwingUtilities.isRightMouseButtoneobjectsremoveAllElements;size.width=0;size.height=0;changed=true;elseintx=e.getX-W/2;inty=e.getY-H/2;ifx<0x=0;ify<0y=0;Rectanglereet=newRectanglexyWH;objects.addElementrect;drawingArea.scrollRectToVisiblerect;intthiswidth=x+W+2;ifthis_width>size.widthsize.width=this_width;changed=true;intthis_height=y+H+2;ifthis_height>size.heightsize.height=this_height;changed=true;ifchangeddrawingArea.setPreferredSizesize;drawingArea.revalidate;drawingArea.paint;publicstaticvoidmainStringargs[]JFrameframe=newJFramejava3;frame.addWindowListenernewWindowAdapterpublicvoidwindowClosingWindowEventesystem.exit0;;frame.setContentPanenewjava3;frame.pack;frame.setVisibletrue;
本题的功能是监听对于颜色的复制和粘贴程序窗口中有一个颜色设置框和两个按钮名为复制和粘贴在颜色设置框中设置颜色后下面的预览面板将显示选中的颜色单击复制按钮后将设置的颜色复制到系统的剪贴板上然后继续选择其他颜色当单击按钮粘贴后预览面板的颜色将设置为刚才复制的颜色importjava.io.*;importjava.awt.*;importjava.awt.datatransfer.*;importjava.awt.event.*;importjava.awt.image.*;importjavax.swing.*;publicclassjava3publicstaticvoidmainString[]argsJFrameframe=newSerialTransferFrame;frame.setDefaultCloseOperationJFrame.EXIT_ON_CLOSE;frame.show;classSerialTransferFrameextendsJFramepublicSerialTransferFramesetTitlejava3;ContainercontentPane=getContentPane;chooser=newJColorChooser;contentPane.addchooserBorderLayout.CENTER;JPanelpanel=newJPanel;JButtoncopyButton=newJButton复制panel.addcopyButton;copyButton.addActionListenernewActionListenerpublicvoidactionPerformedActionEventeventcopy;;JButtonpasteButton=newJButton粘贴;panel.addpasteButton;pasteButton.addActionListenernewActionListenerpublicvoidactionPerformedActionEventeventpaste;;contentPaneaddpanelBorderLayout.SOUTH;pack;privatevoidcopyClipboardclipboard=Toolkit.getDefaultToolkit.getSystemClipboard;intcolor=choosergetColor;SerialSelectionselection=newSerialSeleetioncolor;clipboard.setContentsselectionnull;privatevoidpasteClipboardclipboard=Toolkit.getDefaultToolkit.getSystemClipboard;Transferablecontents=clipboardgetContentsnull;ifcontents==nullreturn;tryDataFlavorflavor=newDataFlavorapplication/x-java-serialized-object;class=java.awt.Color;ifcontents.isDataFlavorSupportedflavorColorcolor=Colorcontents.getTransferDataflavor;______;catchClassNotFoundExceptionexceptionJOptionPane.showMessageDialogthisexception;catchUnsupportedFlavorExceptionexceptionJOptionPane.showMessageDialogthisexception;catchIOExceptionexceptionJOptionPane.showMessageDialogthisexception;privateJColorChooserchooser;classSerialSelectionimplementsTransferableSerialSeleetionSerializableoobj=o;publicDataFlavor[]getTransferDataFlavorsDataFlavor[]flavors=newDataFlavor[2];Classtype=obj.getClass;StringmimeType=application/x-java-serialized-object;class=+type.getName;tryflavors[0]=newDataFlavormimeType;flavors[1]=DataFlavor.stringFlavor;returnflavors;catchClassNotFoundExceptionexceptionreturnnewDataFlavor[0];publicbooleanisDataFlavorSupportedDataFlavorflavorreturnDataFlavor.stringFlavor.equalsflavor||applicationequalsflavorgetPrimaryType&&x-java-serialized-objectequalsflavor.getSubType&&flavor.getRepresentationClass.isAssignableFromobj.getClass;publicvoidgetTransferDataDataFlavorflavorthrowsUnsupportedFlavorExceptionif!isDataFlavorSupportedflavorthrownewUnsupportedFlavorExceptionflavor;ifDataFlavor.stringFlavor.equalsflavorreturnobj.toString;returnobj;privateSerializableobj;
本题中定义了一个树型的通信录窗口左侧是一个树右侧是一个文本域单击树的结点则在右侧文本域中显示相关信息如果单击的是树结点则显示对应名字的电话信息importjavax.swing.*;importjavax.swing.tree.*;importjava.awt.*;importjava.awt.event.*;importjavax.swing.event.*;classMytree2extendsJFrame______JTreetree=null;JTextAreatext=newJTextArea2020;Mytree2Containercon=getContentPane;DefauhMutableTreeNoderoot=newDefauhMutableTreeNode同学通信录;DefaultMutableTreeNodet1=newDefauhMutableTreeNode大学同学;DefaultMutableTreeNodet2=newDefaultMutableTreeNode研究生同学;DefaultMutableTreeNodet1_1=newDefauhMutableTreeNode陈艳;DefauhMutableTreeNodet1_2=newDefaultMutableTreeNode李小永;DefauhMutableTreeNodet2_1=newDefaultMutableTreeNode王小小;DefaultMutableTreeNodet2_2=newDefaultMutableTreeNode董小;setTitlejava2;root.addt1;root.addt2;t1.addt1_1;t1addt1_2;t2.addt2_1;t2.addt2_2;tree=newJTreeroot;JScrollPanescrollpane=newJScrollPanetext;JSplitPanesplitpane=newJSplitPaneJSplitPane.HORIZONTAL_SPLITtruetreescrollpane;tree.addTreeSelectionListenerthis;con.addsplitpane;addWindowListenernewWindowAdapterpublicvoidwindowClosingWindowEventeSystem.exit0;;setVisibletrue;setBounds7080200300;publicvoidvalueChangedTreeSelectionEventeifegetSource==treeDefaultMutableTreeNodenode=DefaultMutableTreeNodetree.getLastSelectedPathComponent;ifnode.isLeafStringstr=______;ifstr.equals陈艳text.setTextstr+:联系电话:0411-4209876;elseifstr.equals李小永text.setTextstr+:联系电话:010-62789876;elseifstr.equals王小小text.setTextstr+:联系电话:0430-63596677;elseifstr.equals董小text.setTextstr+:联系电话:020-85192789;elsetext.setTextnode.getUserObject.toString;publicclassjava2publicstaticvoidmainStringargs[]Mytree2win=newMytree2;win.pack;
下列代码的执行结果是______intnumbers[]=newint[6];forinti=1;i<numbers.length;i++numbers[i]=i-1;System.out.printnumbers[i]+;
判断并设置employee表的主键同时将上面增加的姓名字段隐藏
在堆栈类Sharedstack的定义中为了保证堆栈在并发操作中数据的正确性应在下画线处填入的修饰符是两个下画线的填写内容相同______publicclassSharedStack______intidx=0;______char[]data=newchar[10];publicsynchtonizedvoidpushcharc......publicsynchronizedvoidpop......
下列变量的定义中错误的是______
若类声明加上______修饰符则表示该类不能有子类
热门题库
更多
计算机等级考试
法宣在线考试
司法卷一
司法卷二
司法卷三
司法卷四
企业法律顾问资格考试
“十三五”规划继续教育
潜力激活与创造力开发继续教育
创新创业能力继续教育
科研方法与论文写作继续教育
全面深化改革实现文明发展
提高自身绩效路径与方法
互联网监管与网络道德建设
“互联网+”和电子商务继续教育
职业道德素养继续教育