码迷,mamicode.com
首页 >  
搜索关键字:map hashmap linkedhashmap map.entry collections 可变参数    ( 41027个结果
java Map使用Object 做为Key的问题
近期在看dnsjava 源码的时候,不经意间发现一个自己没有想过的问题:HashMap 如何使用key去查找对应的value的,这个问题很难用语言描述的清楚,那就使用代码来进行说明吧!public class test { public static void main(String[] ar...
分类:编程语言   时间:2014-05-01 16:20:07    阅读次数:509
代码生成器
一.界面设计 二.具体代码 using System; using System.Collections.Generic; using System.ComponentModel; using System.Configuration; using System.Data; using System...
分类:其他好文   时间:2014-05-01 15:26:48    阅读次数:345
LeetCode OJ - Word Ladder 2
我发现在leetcode上做题,当我出现TLE问题时,往往是代码有漏洞,有些条件没有考虑到,这道题又验证了我这一想法。这道题是在上一道的基础上进一步把所有可能得转换序列给出。同样的先是BFS,与此同时需要一个hashMap记录下每个节点,和他所有父节点的对应关系,然后通过DFS,回溯所有可能的路径。...
分类:其他好文   时间:2014-05-01 15:08:04    阅读次数:415
基于geowebcache切片服务的发布
接着上一篇文章,如何将JPG格式的图片转化为带地理坐标的TIFF格式里提及的最近的一个项目,数据源是一张高分辨率的2.5维图片,现在已经成功转化成了带有地理坐标的TIFF格式。下面将介绍借助GeoServer如何将这个TIFF格式的数据以TMS(Tiled Map Service)的形式发布出去。此...
分类:Web程序   时间:2014-05-01 15:05:15    阅读次数:684
原型模式 private static Map<String,Prototype> map = new HashMap<String,Prototype>();
public class PrototypeManager { /** * 用来记录原型的编号和原型实例的对应关系 */ private static Map map = new HashMap(); /** * 私有化构造方法,避免外部创建实例 *...
分类:其他好文   时间:2014-05-01 15:02:37    阅读次数:307
泛型连接数据库
这些天用泛型做了一个数据库的底层,自我感觉很方便,但是功能不是很完善,会继续考虑下去下面给大家分享一下代码1数据库连接的帮助类using System;using System.Collections.Generic;using System.Linq;using System.Text;using...
分类:数据库   时间:2014-05-01 14:07:32    阅读次数:603
shoppingCart
using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;usin...
分类:其他好文   时间:2014-05-01 13:28:29    阅读次数:274
文件流
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Li...
分类:其他好文   时间:2014-05-01 01:02:33    阅读次数:322
map容器设计
在红黑树基础上设计map容器,在设计map时,可以明显利用的map模板类中KEY,VALUE,KEYOFVALUE的灵活运用 不多说,代码如下: //my_map.h #ifndef MY_MAP_H_INCLUDED #define MY_MAP_H_INCLUDED #include //for pair #include"my_rb_tree.h" using std::pair;...
分类:其他好文   时间:2014-04-29 13:27:21    阅读次数:443
C#-访问轰炸机,新建进程,结束进程...(ConsoleApp)---ShinePans
program.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; namespace Tst { class Program { static void Main(string[] arg...
分类:移动开发   时间:2014-04-27 21:35:59    阅读次数:467
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!