相关试题
阅读以下Java代码,填充(1)~(5)的空缺,将解答填入答题纸的对应栏内。【说明】进行两个整数之间的比较,由考生通过输入窗口分别输入两个整数,程序比较出结果。例如:先后输入的两个数分别为25和36。比较结果显示:25!=3625<3625<=36【Java代码】import javax.swing.JOptionPane;public class Java3{public static void main(String args[]){String (1)//用户输入第1个字符串secondNuimber, //用户输入第2个字符串result;//包含输出结果的字符串int number1,//比较的第1个数number2; //比较的第2个数//读用户输入的第1个字符串firstNumber=JOptionPane(2)("Enter first integer:");//读用户输入的第2个字符串secondNumber=JOpttionPane.showlnputDialog("Enter second integer:");//将字符串类型转换成整数类型number1=Integer.(3)(firstNumber);number2=Integer.parselnt(secondNumber);result="";if((4))result=number1+"=="+number2;if(number1!=number2)result=number1+"!=”"+number2;if(number1<number2)result=result+"\n"+number1+"<"+number2;if(numbe1>number2)result=result+"\n"+number1+">"+number2;if(number1<=number2)result=result+"\n"+number1+"<="+number2;if(number1>=number2)result=result+"\n"+number1+">="+number2;//显示结果JOptionPane.(5)(null,result,"Comparison Results",JOptionPane.INFORMATION_MESSAGE.;//程序正常退出System.exit(0);}}
若对线性表的最常用操作是访问任意指定序号的元素,并在表尾加入和删除元素,则适宜采用()存储
A.顺序表
B.单链表
C.双向链表
D.哈希表
以下关于软件维护和可维护性的叙述中,不正确的是()。
A.软件维护要解决软件产品交付用户之后运行中发生的各种问题
B.软件的维护期通常比开发期长得多,其投入也大得多
C.进行质量保证审查可以提高软件产品的可维护性
D.提高可维护性是在软件维护阶段考虑的问题
授权语句GRANT中,以下关于WITHGRANTOPTION子句的叙述中,正确的是()。
A.用于指明该授权语句将权限赋给全体用户
B.用于指明授权语句中,该用户获得的具体权限类型
C.用于指明授权语句中,获得授权的具体用户是谁
D.用于指明获得权限的用户还可以将该权限赋给其他用户
若in、out分别表示入队、出队操作,初始队列为空且元素a、b、c依次入队,则经过操作序列in、in、out、out、in、out之后,得到的出队序列为()。
A.cba
B.bac
C.bca
D.abc
最新解答的试题
提出现代生物-心理-社会医学模式是()
A.恩格尔B.波特C.托马斯·帕茨瓦尔D.比彻尔E.桑德斯
付款人在进行付款时无()
A.形式审查义务
B.实质审查义务
C.附带审查义务
D.票据外有关事项的审查义务
根据《公司法》的规定,有限责任公司下列人员中,可以提议召开股东会临时会议的是()。
A.总经理B.人数过半数的股东C.监事会主席D.人数为半数的董事
关于股份有限公司中的监事会,下列说法错误的是()
A.监事会负责提议聘请或更换外部审计机构B.监事会主席和副主席由全体监事过半数选举产生C.监事会中的职工代表的比例不得低于三分之一D.监事会应至少每6个月召开一次会议