共 20 篇文章 |
|
每个Java开发者都应该知道的5个JDK工具】JDK是Java语言的软件开发工具包,没有它就无法编译Java程序。目前,有许多工具可以绑定到Java JDK上面,其中java.exe和javac.exe是每位Java工程师的必 备武器,与此同时,还有许多其它Java JDK工具呈现在大家眼前。Compiled from "HelloWorld.java" public class HelloWorld { public Hel... 阅161 转1 评0 公众公开 14-11-21 11:46 |
private static UUIDHexGenerator uuidgen = new UUIDHexGenerator();public static int toInt(byte[] bytes) { int result = 0;public String generate() { return 36 + format(getIP()) + this.sep + format(getJVM()) + this.sep + format(getHiTime()) + this.sep + format(getLoTime()) + this.sep + format(getCount());public sta... 阅769 转12 评0 公众公开 14-10-16 14:22 |
JAVA转EXE程序将JAVA桌面程序转成windows的exe可执行文件,听起来觉得似乎没这个必要;这个原理其实就是将JRE搬到目标机子上,通常JRE体积比较大,如果直接一起把JRE打包发布你的JAVA程序,一个helloworld程序的体积就大得惊人,这样的效果是我们不想要的。接着在“选择JRE”处选定需要精简的JRE(一般为“使用当前运行时的JRE”),JCB当前支持1... 阅2987 转1 评0 公众公开 14-05-13 17:41 |
阅400 转1 评0 公众公开 13-10-17 15:35 |
火狐兼容问题总结问题一:最简单的鼠标移过手变型的css要改了 cursor:pointer;/*FireFox(火狐)不支持cursor:hand*/ dw8下面自动出来的也没有hand这个属性了,标准的是pointer.width: 580px;color: #FireFox(火狐)0000;border-width: 0px 0px 1px 0px; /*border: #FireFox(火狐)0000 solid; border-width: 0px 0px 1px 0px; width: 186px;... 阅3289 转11 评0 公众公开 13-04-27 19:01 |
火狐下innerText兼容问题火狐下innerText不起作用,是因为火狐下没有innerText这个属性,火狐下对应的是textContent,所以可以用此语句来进行兼容:if(navigator.appName.indexOf("Explorer") >-1)document.getElementById("id").innerText = "contenttext";另外,火狐和IE均有 innerHTML 属性,所以如果可以... 阅1110 转4 评0 公众公开 13-04-27 18:58 |
日期转换 SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); java.util.Date now = df.parse("2004-03-26 13:31:40"); java.util.Date date=df.parse("2004-01-02 11:30:24");由字符串转化成日期 SimpleDateFormat sdf = new SimpleDateFormat( "yyyy-MM-dd HH:mm:ss ");Stri... 阅142 转1 评0 公众公开 13-04-23 13:51 |
public class MD5 { public static String getMD5Digest(String strInfo) { String strInfoDigest = "";public static String byteToHex(byte bInfoDigest[]) { String strInfoDigest = "";if (strTemp.length() == 1) strInfoDigest = strInfoDigest + "0" + strTemp;else strInfoDigest = strInfoDige... 阅74 转0 评0 公众公开 13-04-23 13:46 |
获取时间差的方法public static String getTime(Date now,Date date){ String time = ""; long l=now.getTime()-date.getTime(); long day=l/(24*60*60*1000); long hour=(l/(60*60*1000)-day*24); long min=((l/(60*1000))-day*24*60-hour*60); long s=(l/1000-day*24*60*60-hour*60*60-min*60); time ="&quo... 阅323 转0 评0 公众公开 13-04-23 13:38 |
官方网站是TortoiseSVN ,下载方式和前面的svn服务器类似,在Download页面的我们可以选择下载的版本,目前的最高稳定版本的安装文件为TortoiseSVN-1.5.5.14361-win32-svn-1.5.4.msi。我们也可以使用TortoiseSVN图形化的完成这一步: 在目录E:\svndemo\repository下"右键->TortoiseSVN->Create Repository here...“, 然后可以选择... 阅32 转0 评0 公众公开 12-05-23 11:34 |