JAVA ÈÕÆÚÏà¹Ø£¨×ªÔØ£©
/**
* ÓйØÈÕÆÚ¹¤¾ßÀà(extends TimeUtil)
*
* TimeUtilÖ÷Òª¹¦ÄÜÓУº
* 1.¸÷ÖÖÈÕÆÚÀàÐÍ£¨×Ö·û£¬util.Date£¬sql.Date£¬CalendarµÈ£©×ª»»
* 2.»ñÈ¡Ö¸¶¨ÈÕÆÚµÄÄê·Ý£¬Ô·ݣ¬ÈÕ·Ý£¬Ð¡Ê±£¬·Ö£¬Ã룬ºÁÃë
* 3.»ñÈ¡µ±Ç°/ϵͳÈÕÆÚ(Ö¸¶¨ÈÕÆÚ¸ñʽ)
* 4.»ñÈ¡×Ö·ûÈÕÆÚÒ»¸öÔµÄÌìÊý
* 5.»ñÈ¡Ö¸¶¨Ô·ݵĵÚÒ»Ìì,×îºóÒ»Ìì
*
* DateUtilÖ÷Òª¹¦ÄÜÓУº
* 1.ÈÕÆڱȽÏ
* 2.»ñÈ¡2¸ö×Ö·ûÈÕÆÚµÄÌìÊý²î£¬ÖÜÊý²î£¬ÔÂÊý²î£¬ÄêÊý²î
* 3.ÈÕÆÚÌí¼Ó
* 4.Åжϸø¶¨ÈÕÆÚÊDz»ÊÇÈóÄê
*/package com.aimtime.financing.service.util;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import java.text.*;public abstract class TimeUtil {
//---µ±Ç°ÈÕÆÚµÄÄ꣬Ô£¬ÈÕ£¬Ê±£¬·Ö£¬Ãë
public static Calendar now = Calendar.getInstance();
int year = now.get( Calendar.YEAR );
int date = now.get( Calendar.DAY_OF_MONTH );
int month = now.get( Calendar.MONTH ) + 1;
int hour = now.get( Calendar.HOUR );
int min = now.get( Calendar.MINUTE );
int sec = now.get( Calendar.SECOND );
//-------------------------------ÈÕÆÚÀàÐÍת»»---------------------------------------------------------------------------
/**
* ×Ö·ûÐÍÈÕÆÚת»¯util.DateÐÍÈÕÆÚ
* @Param:p_strDate ×Ö·ûÐÍÈÕÆÚ
* @param p_format ¸ñʽ:"yyyy-MM-dd" / "yyyy-MM-dd hh:mm:ss"
* @Return:java.util.Date util.DateÐÍÈÕÆÚ
* @Throws: ParseException
* @Author: zhuqx
* @Date: 2006-10-31
*/
public static java.util.Date toUtilDatefromStrDateByFormat( String p_strDate, String p_format )
throws ParseException {
java.util.Date l_date = null;
java.text.DateFormat df = new java.text.SimpleDateFormat( p_format );
if ( p_strDate != null && ( !"".equals( p_strDate ) ) && p_format != null && ( !"".equals( p_format ) ) ) {
l_date = df.parse( p_strDate );
}
return l_date;
}
/**
* ×Ö·û
Ïà¹ØÎĵµ£º
ÎÒÃDz»·ÁÉèÏ룬ΪÁË´´½¨Ò»¸öеÄỊ̈߳¬ÎÒÃÇÐèÒª×öЩʲô£¿ºÜÏÔÈ»£¬ÎÒÃDZØÐëÖ¸Ã÷Õâ¸öÏß³ÌËùÒªÖ´ÐеĴúÂ룬¶øÕâ¾ÍÊÇÔÚJavaÖÐʵÏÖ¶àÏß³ÌÎÒÃÇËùÐèÒª×öµÄÒ»ÇУ¡
×÷Ϊһ¸öÍêÈ«ÃæÏò¶ÔÏóµÄÓïÑÔ£¬JavaÌṩÁËÀà java.lang.Thread À´·½±ã¶àÏ̱߳à³Ì£¬Õâ¸öÀàÌṩÁË´óÁ¿µÄ·½·¨À´·½±ãÎÒÃÇ¿ØÖÆ×Ô¼ºµÄ¸÷¸öÏ̡߳£
  ......
ÓÐʱºòÎÒÃÇ»áÓöµ½java³ÌÐòʹÓÃÄÚ´æ¹ý¶àµÄÇé¿ö£¬ÕâÖÖÇé¿öÒ»°ãÊÇÒòΪ³ÌÐòÓÐÄÚ´æй©£¬ÄÇôÈçºÎ·ÖÎöÊÇ·ñÓÐÄÚ´æй©ÄØ£¿ÆäʵÔÒò±È½Ï¼òµ¥£¬ÏÈÓÃjmapÀ´Éú³ÉÒ»¸ö½ø³ÌµÄÄÚ´æ¿ìÕÕ£¬È»ºóÀûÓÃheapAnalyzer»òÕßMod4JÀ´¶ÔÕâ¸ö¿ìÕÕ½øÐзÖÎö£¬ÕÒµ½ÄÚ´æʹÓÃ×î¶àµÄ¶ÔÏó¡£ÆäʵÓÐÎÞÄÚ´æй©µÄÒ»¸ö±íÏÖ¾ÍÊÇÄÚ´æ·Ö²¼ÊÇ·ñ¾ùÔÈ£¬Èç¹û²»¾ùÔÈ£¬Ò»°ãÀ ......
Ö±½Óͨ¹ýmainÈë¿Ú:
argumentsÉèÖãº-Djava.library.path=¶¯Ì¬¿âËùÔÚĿ¼
ÔÚLinuxÉϵ÷.soÎļþ£º.soÎļþ ±ØÐëÃüÃûΪ£ºlibXXX.so,È磺libJni.so
ÔÚWindowsÉϵ÷.dllÎļþ£º.dllÎļþ ÃüÃû²»Òª¼Ólib,Ö±½ÓÃüÃûΪ£ºXXX.dll È磺Jni.dll
Àý£º
¶¯Ì¬¿â£ºlibJniNassirDecrypt.so »ò JniNassirDecrypt.dll
javaµ÷Óö¯Ì¬¿â´úÂë:
Str ......
±àдһ¸ö³ÌÐò£¬ÅжÏÒ»¸ö×Ö·û´®ÊÇ·ñÊǺϷ¨µÄJava±êʶ·û£»
//create string
import java.util.regex.*;
public class Split {
public static void main (String[] args) {
Pattern pattern = Pattern.compile("[,]");
String[] arrStr = pattern.split("abstract,break,byte,boole ......