摘要: Stack集合 干草堆集合 栈集合 栈;stack,先进后出,一个一个赋值,一个一个取值,安装顺序来. 属性和方法 实例化 初始化 Stack st = new Stack(); 添加元素 个数Console.WriteLine(st.Count);只要使用一次pop方法,就会从最后一个元素开始排除 阅读全文
posted @ 2016-10-16 21:10 尘暮 阅读(385) 评论(0) 推荐(0) 编辑
摘要: 1,运用集合 arrayList 首先复制Colections加 ; 创建arrayList ar =new arrayList(); ArrayList具体提供的功能:属性 功能说明Count 获取 ArrayList 中实际包含的元素数 方法 功能说明Add () 将对象添加到 ArrayLis 阅读全文
posted @ 2016-10-16 14:46 尘暮 阅读(234) 评论(0) 推荐(0) 编辑