您的位置:首页 > 其它

redhat kvm 虚拟机U盘不识别的解决办法

2015-06-26 14:23 351 查看
/**
* TODO
*/
package com.xeezee.collection;

/**
* 栈
*
* @author luoqinglong
* @date 2012-7-31
*/
public class Stack {
private final int size;
private final long[] stackArray;
private int top;

public Stack(int caption) {
this.size = caption;
this.stackArray = new long[caption];
this.top = -1;
}

public void push(long i) {
if (!this.isFull()) {
this.stackArray[++this.top] = i;
}
}

public long pop() {
return this.stackArray[this.top--];
}

public long peek() {
return this.stackArray[this.top];
}

public boolean isFull() {
return this.top == this.size - 1;
}

public boolean isEmpty() {
return this.top == -1;
}

/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Stack stack = new Stack(10);

}

}

 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: