码迷,mamicode.com
首页 >  
搜索关键字:list add    ( 89211个结果
[矩阵+线段树] zoj 3772 Calculate the Function
题目链接: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5235 Calculate the Function Time Limit: 2 Seconds      Memory Limit: 65536 KB You are given a list of numbers A1 A2 .. AN...
分类:其他好文   时间:2014-05-18 09:52:49    阅读次数:410
hibernate sql查询对象到map中
public List queryBySqlMap(String asql) {           final String sql = asql;           List lst = getHibernateTemplate().executeFind( new  HibernateCallback() {                 public  Object doInHi...
分类:数据库   时间:2014-05-18 08:07:09    阅读次数:378
一个坑爹的BUG,不仔细看还真看不出来问题
Queue queue = new LinkedList (); for(int i = 0; i<20; i++) { queue.add("坑爹" + i); } for(int j =0; j<queue.size(); j++) { String str = queue.poll(); System.out.println(j); }嘿嘿 输出的是从1~10;虽然没什么技术含量但是我...
分类:其他好文   时间:2014-05-18 04:20:23    阅读次数:282
反射用法
static void Main(string[] args) { var retul = GetListData("wang"); } public static List GetListData(string name) where ...
分类:其他好文   时间:2014-05-18 02:06:10    阅读次数:243
Leetcode | Reverse Nodes in k-Group
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.If the number of nodes is not a multiple of k then le...
分类:其他好文   时间:2014-05-18 01:53:53    阅读次数:331
Leetcode | Remove Duplicates from Sorted List I && II
Remove Duplicates from Sorted List IGiven a sorted linked list, delete all duplicates such that each element appear only once.For example,Given 1->1->...
分类:其他好文   时间:2014-05-18 01:41:31    阅读次数:361
Java List&Map简单初始化方法
Java中List与Map初始化的一些写法代码如下 复制代码 //初始化List List list = new ArrayList() { { add("obj1"); add("obj2"); add("objN"); ...
分类:编程语言   时间:2014-05-18 01:29:17    阅读次数:452
线性表运算--链式存储结构模板类实现
采用C++模板类实现 1 #ifndef _List_H_ 2 #define _List_H_ 3 #include 4 #include "stdlib.h" 5 template 6 class CNode 7 { 8 public: 9 T data; 10 ...
分类:其他好文   时间:2014-05-18 00:38:59    阅读次数:407
C++ PRIMER 第九章
顺序容器:vector list deque顺序容器适配器: stack queue priority_quequ(没见过,第一轮不管)C c; C c(c2); C c(b,e) ///b e 都是迭代器; c(n,t)///只用于顺序容器; C c(n) ///只用于顺序容器const list...
分类:编程语言   时间:2014-05-17 23:43:37    阅读次数:471
安装完Linux Mint后,发现系统中竟没有中文输入法
安装完Linux Mint后,发现系统中竟没有中文输入法,语言支持之后自动更新过程中有些安装包下载失败。可以采取下面的方法安装上中文输入法。1. 安装iBus:sudo add-apt-repository ppa:shawn-p-huang/ppasudo apt-get updatesudo a...
分类:系统相关   时间:2014-05-17 23:12:51    阅读次数:441
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!