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); } }
相关文章推荐
- 学习日记-OC中的构造法
- Linux笔记
- 第十二届浙江省大学生程序设计大赛-Team Formation
- windows远程访问树莓派方法(+树莓派启动方法)
- spring简介(个人笔记)
- 第十二届浙江省大学生程序设计大赛-Team Formation 分类: 比赛 2015-06-26 14:22 50人阅读 评论(0) 收藏
- CWE-193: Off-by-one Error
- ios应用,64位问题,Missing 64-bit support
- Gradle chapter7 Gradle chapter7.Java Quickstart
- pypi国内源
- TLD视觉跟踪算法(转)
- 我的第一篇CSDN博文
- switch 循环中的case理解
- android 指南针
- Palindrome Number
- Asp.net Web 定时自动发邮件
- C++ 国外程序员整理的 C++ 资源大全
- Cocos2dx 3.x包含ext库报错解决
- Oracle INTERVAL DAY TO SECOND数据类型
- Algorithms—134.Gas Station