首页 > 编程语言
我的读书笔记(线程进程)
线程有时候可以被称为微进程或轻量级进程,它的概念和进程十分相似,是一个可以被调度的单元,并且维护自己的堆栈和上下文环境,线程是附属进程的,一个进程可以包含1个或者多个线程,并且同一进程内的多个线程共享一块内存快和资源,一个线程是一个操作系统可调度的基本单元,但同时它的调度受限于包含该线程的进程,.....
分类:编程语言   时间:2014-08-01 10:31:01    收藏:0  评论:0  赞:0  阅读:358
Palindrome Partitioning leetcode java
题目:Given a string s, partition s such that every substring of the partition is a palindrome.Return all possible palindrome partitioning of s.For exam....
分类:编程语言   时间:2014-08-01 10:30:01    收藏:0  评论:0  赞:0  阅读:377
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    收藏:0  评论:0  赞:0  阅读:405
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    收藏:0  评论:0  赞:0  阅读:347
java 垃圾回收步步深入01----整体印象
java 垃圾回收步步深入01----整体印象 一.总体概念 1.垃圾收集:不再使用的内存空间应该被回收 2.在C/C++语言中,垃圾回收由程序员负责 3.在Java中,它提供了一种系统级线程跟踪存储空间分配情况,在JVM空闲时,检查并释放可被释放的存储空间。垃圾收集在Java程序运行中是自动收集的,程序员无法干预。 4.垃圾回收回收的是无任何引用的对象占据的内存空间而不是对象本身 5...
分类:编程语言   时间:2014-08-01 09:19:41    收藏:0  评论:0  赞:0  阅读:310
Python 爬行Twitter用户的Friendship图
Python 爬行Twitter用户的Friendship图...
分类:编程语言   时间:2014-08-01 09:19:31    收藏:0  评论:0  赞:0  阅读:496
Java中循环声明变量方法
Java循环声明变量 之前想这样做,但是网上一直搜索不到,下面是我的方式   项目中 // 得到需要查询外表的数量,然后分别创建缓存,插入数据多的时候如果编码在缓存里面,就不需要再去查询数据库了。key:code/value:pk // 根据“数据来源”有多少非空的 就创建几个,使用 “数据来源字段”+Cache 当cacheMap的key Map> cacheMap =new ...
分类:编程语言   时间:2014-08-01 09:19:11    收藏:0  评论:0  赞:0  阅读:361
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    收藏:0  评论:0  赞:0  阅读:340
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    收藏:0  评论:0  赞:0  阅读:408
Velocity+Java较全教程
Velocity+Java的教程,有一个测试工程,并且使用的是Template模式,而不是网络上常能搜索到的merge模式
分类:编程语言   时间:2014-08-01 09:10:41    收藏:0  评论:0  赞:0  阅读:357
Myeclipse导出Javadoc步骤
我的论坛网站:“http://www.0309bbs.com/”
分类:编程语言   时间:2014-08-01 07:04:03    收藏:0  评论:0  赞:0  阅读:361
javascript 获取函数形参个数
分享下javascript获取函数形参个数的方法。/** * 获取函数的形参个数 * @param {Function} func [要获取的函数] * @return {*} [形参的数组或undefind]* @site www.jbxue.com */function getFun...
分类:编程语言   时间:2014-08-01 06:59:01    收藏:0  评论:0  赞:0  阅读:360
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    收藏:0  评论:0  赞:0  阅读:340
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    收藏:0  评论:0  赞:0  阅读:396
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    收藏:0  评论:0  赞:0  阅读:359
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    收藏:0  评论:0  赞:0  阅读:341
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    收藏:0  评论:0  赞:0  阅读:369
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    收藏:0  评论:0  赞:0  阅读:297
多线程
线程的两种实现方式:1.extend Thread 2.implement Runnable多线程共享数据:如果每个线程执行的代码相同,可以使用同一个Runnable对象,这个Runnable对象中有那个共享数据:1.将共享数据封装在另外一个对象中,然后将这个对象逐一传递给各个Runnable对象。...
分类:编程语言   时间:2014-08-01 04:52:01    收藏:0  评论:0  赞:0  阅读:379
JavaScript Date对象更进一步
总结分享这个近期开发解决的一个Bug。 Javascript的Date对象具有容错性,会自动根据当年的日期根据设置的属性值转换,也就是说Date对象的setDate会影响setMonth,而month会影响到setFullYear。 JavaScript的Date对象容错性 如果单独使...
分类:编程语言   时间:2014-08-01 04:48:31    收藏:0  评论:0  赞:0  阅读:286
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!