
java
文章平均质量分 50
jianglubin08
勤习出奇策,乐学生妙计
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
InputStream与OutputStream的使用例子
package com.hanchao.test;import java.io.BufferedInputStream;import java.io.BufferedOutputStream;import java.io.File;import java.io.FileInputStream;import java.io.FileOutputStream;/*...原创 2012-12-21 14:52:20 · 308 阅读 · 0 评论 -
java 随机获取十六进制颜色代码
public class RandomColor { public String getRandColor() { String r, g, b; Random random = new Random(); r = Integer.toHexString(random.nextInt(256)).toUpperCase(); g = Integer.toHexString(random....原创 2012-09-07 14:29:40 · 671 阅读 · 0 评论 -
DBUtil
public static Connection getConnection(){ Connection con=null; try{ con=DriverManager.getConnection( "jdbc:mysql://localhost:3306/department","root","root" ); }c...原创 2012-09-07 14:31:14 · 138 阅读 · 0 评论 -
32位16进制转换为10进制
public class Trans2Ten { public static void main(String[] args) { long l = sixteen2ten("11e1-c418-a000039f-baac-7596f0d041ff"); System.out.println("十进制:" + l); } public static long sixteen2ten(S...原创 2012-09-25 11:06:47 · 3231 阅读 · 0 评论 -
甘特图父子任务级联关系
由于甘特图的任务id必须是0-9的数字,所以这里的任务id为rid,id字段为数据库中的逐渐。下面两个方法为核心方法。 //定义一个空有序集合List<GanttViewBean> resultList = new ArrayList<GanttViewBean>(); //将获取的数据进行级联排序private List<GanttVie...原创 2012-09-27 19:39:39 · 1239 阅读 · 0 评论