码迷,mamicode.com
首页 >  
搜索关键字:Collection    ( 6338个结果
【Java心得总结五】Java容器中——Collection
在【Java心得总结五】Java容器上——容器初探这篇博文中,我对Java容器类库从一个整体的偏向于宏观的角度初步认识了Java容器类库。而在这篇博文中,我想着重对容器类库中的Collection容器做一个着重的探索与总结。Collection:一个独立元素的序列,这些元素都服从一条或多条规则。(注...
分类:编程语言   时间:2014-06-16 23:23:50    阅读次数:423
队列的简单学习
/** *1.在Java5中新增加了java.util.Queue接口,用以支持队列的常见操作。该接口扩展了java.util.Collection接口。 * *Queue使用时要尽量避免Collection的add()和remove()方法,而是要使用offer()来加入元素,使用poll()来获取 *或移除的元素。他们的优点是通过返回值..
分类:其他好文   时间:2014-06-16 15:01:35    阅读次数:218
Linux Kernel的Makefile与Kconfig文件的语法
https://www.kernel.org/doc/Documentation/kbuild/kconfig-language.txtIntroduction------------The configuration database is a collection of configuratio...
分类:系统相关   时间:2014-06-15 23:22:07    阅读次数:313
Range-Based for Loops
for ( decl : coll ){ statement}where decl is the declaration of each element of the passed collection coll and for which the statements specified are....
分类:其他好文   时间:2014-06-15 22:11:18    阅读次数:295
[Java] MAP、LIST、SET集合解析
在JAVA的util包中有两个所有集合的父接口Collection和Map,它们的父子关系: java.util +Collection 这个接口extends自 --java.lang.Iterable接口 +List 接口 -ArrayList 类 -LinkedList 类 -Vector 类...
分类:编程语言   时间:2014-06-15 20:23:51    阅读次数:280
Combination Sum II
题目 Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. Each number in C may only be used once in...
分类:其他好文   时间:2014-06-15 19:24:21    阅读次数:229
Java 集合
Java 中数组声明后不可修改 –跟C一样 ,C中往往会增加定义HASHTABLE,链表等结构来实现动态的数组 但在java中,已经有现成的,称为集合 Collection (interface,有迭代器)├List (interface)│├LinkedList (class)│├ArrayLis...
分类:编程语言   时间:2014-06-15 13:12:19    阅读次数:210
[LeetCode] Subsets II [32]
题目 Given a collection of integers that might contain duplicates, S, return all possible subsets. 原题链接(点我) 解题思路 这个题很subsets这个题一样,不过这里允许给出的集合中含有重复元素,对于这个条件之需要加一个判断条件就可以了,其余代码和Subsets都一样。 代码实现.......
分类:其他好文   时间:2014-06-15 08:28:53    阅读次数:166
Java 容器:Collection 初探之 List
1 1 ///: JavaBasic//com.cnblogs.pattywgm.day1//CollectionTest.java 2 2 3 3 package com.cnblogs.pattywgm.day1; 4 4 5 5 import java.io...
分类:编程语言   时间:2014-06-15 00:32:28    阅读次数:299
[Leetcode] Merge Intevals
Question:Given a collection of intervals, merge all overlapping intervals.For example,Given[1,3],[2,6],[8,10],[15,18],return[1,6],[8,10],[15,18].-----...
分类:其他好文   时间:2014-06-14 22:59:14    阅读次数:211
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!