自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 资源 (7)
  • 收藏
  • 关注

原创 最大公约数,最小公倍数求法

/** * 最大公約數 * * @param a * @param b * @return */ public static int gcd(int a, int b) { int x = a > b ? a : b; int y = a > b ? b : a; int m = x % y; while (m != 0) { x = y;

2011-10-25 16:23:26 506

原创 字符串Hash算法

public static int BKDRHash(String str) { int seed = 131; // 31 131 1313 13131 131313 etc.. int hash = 0; for (int i = 0; i < str.length(); i++) { hash = (hash * seed) + str.charAt(i); }

2011-10-21 09:09:43 681 1

原创 int,long与byte[]互转

java中int是32位,long是64位,用byte[]表示分别需要4字节和8字节 public static byte[] intToBytes(int in) { byte[] result = new byte[4]; for (int i = 3, j =

2011-09-10 11:51:21 542

原创 快速排序算法

import java.util.Arrays; import java.util.Comparator; public class QuickSort { /** * 對實現了Comparable接口的對象組成的數組進行排序 * * @param *

2011-09-06 09:16:53 469

AWTUtilities

AWTUtilities

2011-10-31

jquery-1.6.1

jquery-1.6.1 jquery-1.6.1 jquery-1.6.1 jquery-1.6.1 jquery-1.6.1

2011-05-30

jquery api 1.4 zh_cn

jquery api 1.4 zh_cn jquery api 1.4 zh_cn jquery api 1.4 zh_cn jquery api 1.4 zh_cn

2011-05-30

jna - 3.2.4

jni的替代 import com.sun.jna.Library; import com.sun.jna.Native; public class Test { public interface User32Library extends Library { public static User32Library INSTANCE = (User32Library) Native.loadLibrary("user32", User32Library.class); public void LockWorkStation(); } public static void main(String[] args) { User32Library.INSTANCE.LockWorkStation(); } }

2011-05-06

Xstream-1.3.1

Xstream-1.3.1,JavaBean与xml之间互相转换

2011-04-18

aptabs网页多标签控件

网页多标签控件网页多标签控件网页多标签控件网页多标签控件

2011-04-15

junit-4.8.2

junit著名的单元测试工具。。。。。。。

2010-05-12

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除