填空题

按“先进后出”原则组织根据的数据结构是______。

【参考答案】

栈或Stack
<上一题 目录 下一题>
热门 试题

单项选择题
阅读下面程序 import javax.swing.JOptionPane; public class BreakLabelTest public static void main(String args[]) String output= : stop: for(int row=1;row<=10;row++) for(int column=1;column<=5;colunm++) if(row==5)break stop; output+= * : output+= n ; output+= nLoops terminated normally : JOptionPane.showMessageDialog(null,output, 用一个标志测试break语句 , JOptionPane.INFORMATION_MESSAGE); System.exit(0); 程序运行的结果是
A.窗口中有5行*****
B.窗口中有5行****
C.窗口中有4行*****
D.窗口中有6行*****
问答题
阅读下面程序 1 public class Try extends Thread 2 public static void main(String args[]) 3 Try t=new Try(); 4 t.start(); 5 6 7 public void run(int j) 8 int i=0; 9 while(i<5) 10 System.out.println( 祝你成功! ); 11 i++: 12 13 14 该程序若能打印5行“祝你成功!”,必须改正程序中的某行代码,选择正确的修改是
相关试题
  • 在Java程序中,主线程一般具有______...
  • 当实现Runnable接口时,要实现的方法是__...
  • mouseDragged()方法是MouseMotionListene...
  • 在下面程序的下画线处,填入适当的语句使程...
  • 在java.io包中有某个类同时实现了DataInpu...