易截截图软件、单文件、免安装、纯绿色、仅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 "";
           


相关文档:

Java 推荐读物与源代码阅读

Java 推荐读物与源代码阅读
                                             &n ......

DES加密算法源码(java版)

public class DES {
    // 声明常量字节数组
    private static final int[] IP = {
            58, 50, 42, 34, 26, 18, 10, 2, 60, 52, 44, 36, 28, 20, 12, 4, 62, 54,
         ......

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 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基础篇:(一)java入门

1.       java是什么
Java是一种编程语言,跟汇编、C、C++一样,是用于软件编程的开发语言。
Java是一种开发、运行环境,java程序的开发要依赖这种环境。
2.       java的特点
java语言具有与平台无关,面向对象,健壮性的特点
1).与平台的无关性
与jav ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号