ITeye博客

2008 年文章归档

共 1 篇文章

JAVA 堆栈和队列的模拟

第一次写东西,刚自己练练手模拟了下堆栈和队列的的类,希望能给自己一点点激励。以后希望自己能多写点JAVA和JAVASCRIPT的东西在这上面,也是希望能和大家多多交流,互相进步。 堆栈:[code="java"] public class LinkedStack { private static class Node{ U item; Node next; Node(){ this.item=null; this.next=null; } Node(U item,Node next){ this.item=item; this.next=next; } boolean end(){retur…

2008-11-12 23:17 · Java · JavaScript