题目内容

在下列E类中System.out.println的输出结果是什么?import java.util.*;public class E {public static void main(String args[]) {LinkedList< Integer> list=new LinkedList< Integer>();for(int k=1;k<=10;k++) {list.add(new Integer(k));}list.remove(5);list.remove(5);Integer m=list.get(5);System.out.println(m.intValue());}}

查看答案
更多问题

在下列E类中System.out.println的输出结果是什么?import java.util.*;public class E {public static void main(String args[]) {Stack mystack1=new Stack(),mystack2=new Stack();StringBuffer bu=new StringBuffer();for(char c='A';c<='D';c++) {mystack1.push(new Character(c));}while(!(mystack1.empty())) {Character temp=mystack1.pop();mystack2.push(temp);}while(!(mystack2.empty())) {Character temp=mystack2.pop();bu.append(temp.charValue());}System.out.println(bu);}}

【单选题】 重庆火锅起源于( )。

A. 隋末唐初
B. 宋末元初
C. 明末清初
D. 民国时期

【单选题】 “重庆”之名始于( )。

A. 北宋
B. 南宋
C. 北朝
D. 南朝

【单选题】 唐代大诗人( )就曾仿民歌作《竹枝词》九首。

A. 李白
B. 杜甫
C. 刘禹锡
D. 骆宾王

答案查题题库