来源于 think in java 上 有点牛角尖的感觉 呵呵 也许以后会用到
package eight;
import java.util.LinkedList;
import java.util.Stack;
public class StackTest {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Stack stack = new Stack();
stack.push("1");
stack.push("2");
stack.push("3");
System.out.println("stack"+stack.get(1));
//结果 2
LinkedList list = new LinkedList();
list.addFirst("1");
list.addFirst("2");
list.addLast("3");
for(int i=0;i<list.size();i++){
System.out.println("list"+list.get(i));
}
//结果 2 1 3
}
}
分享到:
相关推荐
最近发布的Zstack 3.0.2 SDK 和说明文档
TI Z-Stack 3.0.2官方原版,zigbee TI 开发官方BSP,支持TI CC2530,CC2538等多款器件!
主要介绍了 Android studio 出现错误Run with --stacktrace option to get the stack trace. Run with --info or --debu的相关资料,需要的朋友可以参考下
redis-stack-server-7.2.0-v9.arm64.snap redis-stack-server-7.2.0-v9.bionic.arm64.tar.gz redis-stack-server-7.2.0-v9.bionic.x86_64.tar.gz redis-stack-server-7.2.0-v9.bullseye.x86_64.tar.gz redis-stack-...
本项目这是一个纯静态的网址导航网站,项目基于bootstrap前端框架开发,基于Java开发的后台系统 框架:Guns Springboot
The up-to-date, in-depth, complete guide to React and friends. Become a ReactJS expert today.
fullstack-react-book-r39 版本日期:Revision 39 - 2019-01-10 React 版本:16.7 源于网络,归于网络
栈是先进先出的原则,该类实现了栈的移入移除
Angular-mean-stack-angular6-crud-example.zip,平均堆栈角度6 crud web应用程序平均堆栈角度6 crud web应用程序,Angularjs于2016年发布,是Angularjs的重写版。它专注于良好的移动开发、模块化和改进的依赖注入。...
epub版hands-full-stack-development-spring-boot-2-react,完整清晰 Book Description Apart from knowing how to write frontend and backend code, a full-stack engineer has to tackle all the problems that ...
这计算器的实现原理 实现简单的符号运算 + - × /( )
This book guides you through preparing the development environment for MERN stack-based web development, to creating a basic skeleton application and extending it to build four different web ...
python-flask-and-django-full-stack-python-for-web-development
redis-stack-server-6.2.4-v1.rhel7.x86_64.tar.gz
Full Stack Python简体中文翻译项目-fullstackpython.cn
说明: TI的最新版本Z-stack协议栈 包含主要的CC2530 zigbee的所有源代码,可以自行修改 (Can modify all source code contains the main CC2530 zigbee )
f-stack的客户端服务端实现方法代码
Berkeley-Data-Analytics-Stack-BDAS-Overview-Ion-Stoica-Strata-2013.pdf
fullstack-react-native-book-r5 2018.9月上传最新版本。
网上找了好久都没有高版本的arm架构redis服务器rpm包,打包了一个,适用linux系统arm架构redis离线安装。