易截截图软件、单文件、免安装、纯绿色、仅160KB

java 常用工具类

DateTimeHelper 时间组件
/**
 *
 */
package com.ibm08001.bbs.utils;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
 *
 */
public class DateTimeHelper {
        private static SimpleDateFormat FULL_SDF = new SimpleDateFormat(
                "yyyy-MM-dd HH:mm:ss");
        private static SimpleDateFormat DFULL_SDF = new SimpleDateFormat(
                "yyyy-MM-dd");
        private static SimpleDateFormat DFULL_SDF_SLASH = new SimpleDateFormat(
                "yyyy/MM/dd HH:mm");
        private static SimpleDateFormat FULL_SDF_NOSP = new SimpleDateFormat(
                "yyyyMMddHHmm");
        private static SimpleDateFormat DFULL_SDF_CN = new SimpleDateFormat(
                "yyyy年MM月dd日");
        private static SimpleDateFormat ONLY_TIME = new SimpleDateFormat("HH:mm");
        private static SimpleDateFormat MD_TIME = new SimpleDateFormat("MM-dd");
        public static String getMDTime(Date date) {
            if (date != null) {
                return MD_TIME.format(date);
            } else {
                return "";
           


相关文档:

32位不可逆加密算法Java实现

加密后是一个32位大写字母组合形式,并且本加密方法不可逆!
public String kljm(String dm,String kl)
{
String mw, cmm;
int k, i, tmp, a, hf, lf, bytes = 16;
int mm[], l,rand_seed;
rand_seed = 12345;
int len=kl.length();
if(len>=12) len=12;
mw =kl.substring(0,len) + dm.trim();
l = ......

Java数组小结

数组最常用的应该就是.length 数组长度,数组所能容纳个的元素个数!而不是应用的数组元素个数,比如new了个20个给这个数组对象,但是用了10个.length的值为20。
foreach语法(仅当jdk为5.0时可用):
一维:
int shuzu = {1,1,1,1,1,1};
for(int element : shuzu){
System.out.print(enement+"\t");
}
二维:
int ......

Java SE 6更新,性能大幅提升

据InternetNews.com报道,作为今年的第一次更新,Java SE 6 Update 18(也称为6u18)不仅修复了超过300个bug(够多的啊),而且更值得注意的是,提升了虚拟机HotSpot的性能,这将同时有益于Java和JavaFX(基于JVM的RIA方案)应用程序。
此外,Java安装器的底层机制被替换,可用性大大提高。
jar文件创建长期存在的一个bug ......

java WebService

In recent years, web services have emerged as a popular technology for remote method calls. Technically, a web service has two components:
A service that can be accessed with the SOAP transport protocol
A description of the service in the WSDL format
SOAP is an XML protocol for invoking remote me ......

JAVA如何调用VOS2009接口

我在做VOS2009第3方接口调用,通过这个接口要获取余额显示到web上余额。
我知道java处理HTTP post数据以及webservice相关的数据,可是对于vos这种接口没弄过,不清楚怎么实现,我从网上找了下,看到有个说是通过UDP发送报文实现的,但是不知道如何用java实现,麻烦有知道的赐教下,谢谢!
示例报文结构
OPTIONS sip:80 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号