05ChapterJava基础课件第五章.pptVIP

  • 6
  • 0
  • 约8.79千字
  • 约 46页
  • 2017-01-01 发布于江西
  • 举报
05ChapterJava基础课件第五章.ppt

堆栈类使用举例 import java.util.*; class TestStack { public static void main(String args[]) { Stack mystack=new Stack(); mystack.push(new String(start)); mystack.push(new String(one)); mystack.push(new String(two)); mystack.push(new String(three)); mystack.push(new String(four)); mystack.push(new String(five)); mystack.push(new String(end)); 续 while(!(mystack.empty())) { String temp=(String)mystack.pop(); System.out.print( +temp); } System.out.print(\n); } } 程序执行的效果如下图所示。 5.5 链表(LinkedLis

文档评论(0)

1亿VIP精品文档

相关文档