码迷,mamicode.com
首页 > 编程语言
Java解读内存,优化编程
1.别用new Boolean 在很多场景中Boolean类型是必须的,比如JDBC中boolean类型的set与get都是通过Boolean封装传递的,大部分ORM也是用Boolean来封装boolean类型的,比如: ps.setBoolean("isClosed",new Boolean(t....
分类:编程语言   时间:2014-08-01 10:29:01    阅读次数:252
Valid Palindrome leetcode java
题目:Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: ....
分类:编程语言   时间:2014-08-01 10:27:11    阅读次数:310
java 垃圾回收步步深入01----整体印象
java 垃圾回收步步深入01----整体印象 一.总体概念 1.垃圾收集:不再使用的内存空间应该被回收 2.在C/C++语言中,垃圾回收由程序员负责 3.在Java中,它提供了一种系统级线程跟踪存储空间分配情况,在JVM空闲时,检查并释放可被释放的存储空间。垃圾收集在Java程序运行中是自动收集的,程序员无法干预。 4.垃圾回收回收的是无任何引用的对象占据的内存空间而不是对象本身 5...
分类:编程语言   时间:2014-08-01 09:19:41    阅读次数:256
Python 爬行Twitter用户的Friendship图
Python 爬行Twitter用户的Friendship图...
分类:编程语言   时间:2014-08-01 09:19:31    阅读次数:297
Java中循环声明变量方法
Java循环声明变量 之前想这样做,但是网上一直搜索不到,下面是我的方式   项目中 // 得到需要查询外表的数量,然后分别创建缓存,插入数据多的时候如果编码在缓存里面,就不需要再去查询数据库了。key:code/value:pk // 根据“数据来源”有多少非空的 就创建几个,使用 “数据来源字段”+Cache 当cacheMap的key Map> cacheMap =new ...
分类:编程语言   时间:2014-08-01 09:19:11    阅读次数:243
Java中读取Excel功能实现_POI
这里使用apache的poi进行读取excel 1,新建javaproject 项目:TestExcel 2,导入包 包下载地址:http://poi.apache.org/download.html#POI-3.10-FINAL 百度网盘下载:http://pan.baidu.com/s/1i365mQT 导入根目录下、lib、ooxml-lib下的所有jar 4,操作读取exc...
分类:编程语言   时间:2014-08-01 09:18:51    阅读次数:323
Java中Excel导入功能实现、excel导入公共方法_POI -
这是一个思路希望能帮助到大家:如果大家有更好的解决方法希望分享出来 公司导入是这样做的 每个到导入的地方 @Override public List materialDataImport2(byte[] fileBytes, String fileName) { //return DataImport(fileBytes, fileName, "inv_m"); Fil...
分类:编程语言   时间:2014-08-01 09:18:41    阅读次数:354
python 的一些小技巧
赋值:a, b, c = 'xixi', 'haha', 'hehe'连接字典:>>> s = {1:'a', 2:'b', 3:'c'}>>> s.keys()[1, 2, 3]>>> s.values()['a', 'b', 'c']>>> s.items()[(1, 'a'), (2, 'b'...
分类:编程语言   时间:2014-08-01 09:12:31    阅读次数:333
Velocity+Java较全教程
Velocity+Java的教程,有一个测试工程,并且使用的是Template模式,而不是网络上常能搜索到的merge模式
分类:编程语言   时间:2014-08-01 09:10:41    阅读次数:279
Myeclipse导出Javadoc步骤
我的论坛网站:“http://www.0309bbs.com/”
分类:编程语言   时间:2014-08-01 07:04:03    阅读次数:235
javascript 获取函数形参个数
分享下javascript获取函数形参个数的方法。/** * 获取函数的形参个数 * @param {Function} func [要获取的函数] * @return {*} [形参的数组或undefind]* @site www.jbxue.com */function getFun...
分类:编程语言   时间:2014-08-01 06:59:01    阅读次数:280
Sum Root to Leaf Numbers leetcode java
题目:Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number.An example is the root-to-leaf path 1->2->3 w....
分类:编程语言   时间:2014-08-01 06:57:21    阅读次数:297
Construct Binary Tree from Inorder and Postorder Traversal Traversal leetcode java
题目:Given inorder and postorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.题解:这道题跟pre....
分类:编程语言   时间:2014-08-01 06:56:51    阅读次数:185
Construct Binary Tree from Preorder and Inorder Traversal leetcode java
题目:Given preorder and inorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.题解: 1 ...
分类:编程语言   时间:2014-08-01 06:56:41    阅读次数:228
Convert Sorted List to Binary Search Tree leetcode java
题目:Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.题解:之前做过一道是从sorted array转换到BinarySearc....
分类:编程语言   时间:2014-08-01 04:54:21    阅读次数:310
Unique Binary Search Trees II leetcode java
题目: Given n, generate all structurally unique BST's (binary search trees) that store values 1...n.For example,Given n = 3, your program should return....
分类:编程语言   时间:2014-08-01 04:53:31    阅读次数:279
Unique Binary Search Trees leetcode java
题目:Given n, how many structurally unique BST's (binary search trees) that store values 1...n?For example,Given n = 3, there are a total of 5 unique B....
分类:编程语言   时间:2014-08-01 04:53:11    阅读次数:272
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!