Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

JAVA ÈÕÆÚ¹¤¾ßÀà

package com.gamvan.tools;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
public class FormatDateTime {

/**
* ÈÕÆÚÀà²Ù×÷¹¤¾ß
*/
public static String formatDateTime(String ymd){
//¸ñʽ»¯µ±Ç°Ê±¼ä
java.text.SimpleDateFormat isNow = new java.text.SimpleDateFormat(ymd);
String now = isNow.format(new java.util.Date());
return now;
}

public static String formatDateTime(String ymd, String datetime){
//¸ñʽ»¯µ±Ç°Ê±¼ä
java.text.SimpleDateFormat isNow = new java.text.SimpleDateFormat(ymd);
String now = "";
try{
isNow.format(datetime);
}catch(Exception e){
e.printStackTrace();
}
return now;
}

/* ±È½Ïµ±Ç°ÈÕÆÚºÍÖ¸¶¨ÈÕÆÚ return boolean
* Èç¹ûµ±Ç°ÈÕÆÚÔÚÖ¸¶¨ÈÕÆÚÖ®ºó·µ»Øtrue·ñÔò·µ»Øflase
*/
public static boolean dateCompare(String str){
boolean bea = false;
SimpleDateFormat sdf_d = new SimpleDateFormat("yyyy-MM-dd");
String isDate = sdf_d.format(new java.util.Date());
java.util.Date date1;
java.util.Date date0;
try {
date1 = sdf_d.parse(str);
date0= sdf_d.parse(isDate);
if(date0.after(date1)){
bea = true;
}
} catch (ParseException e) {
bea = false;
}
return bea;
}


/*
* ±È½Ïµ±Ç°Ô·ݺÍÖ¸¶¨Ô·Ý
* Èç¹ûµ±Ç°Ô·ÝÔÚÖ¸¶¨Ô·ÝÖ®ºó·µ»Øtrue·ñÔò·µ»Øflase
*/
public static boolean monthCompare(String str){
boolean bea = false;
SimpleDateFormat sdf_m = new SimpleDateFormat("yyyy-MM");
String isMonth = sdf_m.format(new java.util.Date());
java.util.Date date1;
java.util.Date date0;
try {
date1 = sdf_m.parse(str);
date0= sdf_m.parse(isMonth);
if(date0.after(date


Ïà¹ØÎĵµ£º

̸̸Java¼Ì³ÐÖеÄÖØÔØ£¬¸²¸ÇºÍÒþ²Ø

̸̸Java¼Ì³ÐÖеÄÖØÔØ£¬¸²¸ÇºÍÒþ²Ø
ºÃ¾Ã²»Ð´²©¿ÍÁË£¬¾àÀëÉÏһƪÒѾ­¹ýÁËÁ½Äê¶àÁË¡£ÕâÁ½ÄêÔÚ¸ÉÂï,×ÜÖ®Ò»ÄêÄѾ¡£¡
Ç°Ò»¶Îʱ¼äæÁËÁ½¸öÔ£¬Ã¦×ÅÑо¿ºÍ×öһЩSSH¼Ü¹¹µÄ¶«Î÷£¬Á½¸öÔÂÏÂÀ´£¬ÊÕ»ñÆķᣬ×î½üÏÐÏÂÀ´ÁË£¬ÓÚÊǾÍÍ´¿ìµÄ¿ªÊ¼ÍæÓÎÏ·£¬µ«ÊDz»ÖªÔõôµØ£¬ÔõôÍ涼ûÒâ˼£¬ÓÚÊǾö¶¨¿ªÊ¼ÔٺúÃÑо¿Ñо¿Java°É¡£ÓÚÊÇ´ó¸Å·­ÁË·­ ......

ͨ¹ýѧϰÕÅÀÏʦµÄjavaÊÓƵÎÒѧµ½ÁËʲô

¡¾1¡¿Í¨¹ý¿´ÕâÌ×ÊÓƵÎÒѧµ½ÁËÃæÊԵļ¼ÇÉ£¬ÒÔ¼°Ò»Ð©ÐèÒª¼ÇסµÄÃæÊÔÌâ
¡¾2¡¿Í¨¹ý¿´ÊÓƵÎÒѧµ½ÁËÔõÑùȥѧϰ£¬ÔõÑùÔÚ¶Ìʱ¼äÄڰѸÃÓõļ¼Êõѧ»á£¬Í¨¹ý²é¿´×ÊÁÏÆ©ÈçAPIµÈ£¬¶øÇÒ»¹Ñ§»áÁËÏÖѧÏÖÂô£¬»îѧ»îÓÃ
¡¾3¡¿Ê²Ã´ÊÇIDEÓ¦ÓóÌÐò¿ª·¢¹¤¾ß
¡¾4¡¿MyEclipseµÄһЩʹÓÃС¼¼ÇÉ£¬Í¨¹ýÕâЩС¼¼ÇÉ¿ÉÒÔÔö¼Ó¿ª·¢Ð§ÂÊ
£¨¿ì½Ý¼ü£©£¨javaÄ ......

JAVA³ÌÐò´ÓÊôÐÔÎļþ£¨.Properties£©ÖÐÈ¡µÃijÊôÐÔµÄÖµ

Ò»¡¢µ÷ÓÃÊôÐÔÎļþÊôÐԵĴúÂ룺
 String url=SmsProperties.get("sms_address_frontend");//È¡µØÖ·Èç“sms_address_frontend=http://172.16.1.9:8280/sms_frontend/services/smsSenderWebService”
 String smsServer = SmsProperties.get("sms_server_name");//·¢ËͶÌÐŵķþÎñÕ˺Å(ÕâÀï¿ÉÒÔÈ¡ÖÐÎÄÊôÐ ......

[JAVA]intÀàÐͺÍbyte[]»¥×ª

package com.mapabc.sz_hbt.util;
/**
* <p>Title:ÕûÐÍÓ볤¶ÈΪ4µÄ×Ö½ÚÊý×éµÄ»¥»» </p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2007-5-10</p>
* <p>Company: www.mapabc.com</p>
* @author luoyj
* @version 1.0
*/
public class Byte ......

Ì°³ÔÉßµÄËã·¨·ÖÎö(Java)


Ì°³ÔÉßµÄËã·¨·ÖÎö(Java)
 
Ì°³ÔÉßÊÇÒ»¿î·Ç³£¾­µäµÄÊÖ»úÓÎÏ·¡£ËüÓкܶàËã·¨£¬ÕâÀïÏêϸ·ÖÎöÒ»ÖֱȽÏÓÅÐãµÄËã·¨¡£
Ê×ÏȽéÉÜÏÂÖ÷ÒªÓõ½µÄÆ߸öÀࣺ
l          WormMain£º×îÖ÷ÒªµÄÀ࣬¿ØÖÆËùÓÐÆäËüÀàµÄÔËÐкÍÏú»Ù¡£
l       &nbs ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ