java×Ö·û´®±àÂëÀàÐÍ»ñÈ¡
http://xxw8393.blog.163.com/blog/static/37256834200910432656672/
Encoding.java
package org.loon.test.encoding;
/** *//**
* <p>
* Title: LoonFramework
* </p>
* <p>
* Description:±àÂë»ù±¾ÀàÐͼ¯ºÏ
* </p>
* <p>
* Copyright: Copyright (c) 2008
* </p>
* <p>
* Company: LoonFramework
* </p>
* <p>
* License: http://www.apache.org/licenses/LICENSE-2.0
* </p>
*
* @author chenpeng
* @email£ºceponline@yahoo.com.cn
* @version 0.1
*/
public class Encoding ...{
// Ö§³ÖµÄ×Ö·û¸ñʽ
public static int GB2312 = 0;
public static int GBK = 1;
public static int BIG5 = 2;
public static int UTF8 = 3;
public static int UNICODE = 4;
public static int EUC_KR = 5;
public static int SJIS = 6;
public static int EUC_JP = 7;
public static int ASCII = 8;
public static int UNKNOWN = 9;
public static int TOTALT = 10;
public final static int SIMP = 0;
public final static int TRAD = 1;
// ½âÎöÃû³ÆÓÃ
public static String[] javaname;
// ±àÂëÓÃ
public static String[] nicename;
// Ó¦ÓÃÓÚhtmlÖеÄ×Ö·û¼¯
public static String[] htmlname;
public Encoding() ...{
javaname = new String[TOTALT];
nicename = new String[TOTALT];
htmlname = new String[TOTALT];
javaname[GB2312] = "GB2312";
&n
Ïà¹ØÎĵµ£º
ListµÄÓ÷¨
List°üÀ¨List½Ó¿ÚÒÔ¼°List½Ó¿ÚµÄËùÓÐʵÏÖÀà¡£ÒòΪList½Ó¿ÚʵÏÖÁËCollection½Ó¿Ú£¬ËùÒÔList½Ó¿ÚÓµÓÐCollection½Ó¿ÚÌṩµÄËùÓг£Ó÷½·¨£¬ÓÖÒòΪListÊÇÁбíÀàÐÍ£¬ËùÒÔList½Ó¿Ú»¹ÌṩÁËһЩÊʺÏÓÚ×ÔÉíµÄ³£Ó÷½·¨£¬Èç±í1Ëùʾ¡£
±í1 List½Ó¿Ú¶¨ÒåµÄ³£Ó÷½·¨¼°¹¦ÄÜ
´Ó±í1¿ÉÒÔ¿´³ö£¬List½Ó¿ÚÌṩµÄÊʺÏÓÚ×ÔÉíµÄ ......
1.j2ee
http://0444.xue8xue8.com/computer/program/java/j2eeshuren/00.wmv
http://0444.xue8xue8.com/computer/program/java/j2eeshuren/01.wmv
http://0444.xue8xue8.com/computer/program/java/j2eeshuren/02.wmv
http://0444.xue8xue8.com/computer/program/java/j2eeshuren/03.wmv
http://0444.xue8xue8.com/c ......
£¨Ò»£©java ¾²Ì¬´úÂë¿é ¾²Ì¬·½·¨Çø±ð
Ò»°ãÇé¿öÏÂ,Èç¹ûÓÐЩ´úÂë±ØÐëÔÚÏîÄ¿Æô¶¯µÄʱºò¾ÍÖ´ÐеÄʱºò,ÐèҪʹÓþ²Ì¬´úÂë¿é,ÕâÖÖ´úÂëÊÇÖ÷¶¯Ö´ÐеÄ;ÐèÒªÔÚÏîÄ¿Æô¶¯µÄʱºò¾Í³õʼ»¯,ÔÚ²»´´½¨¶ÔÏ ......
1¡¢±ØÐëÒýÈ룺java.text.SimpleDateFormat
2¡¢ÉèÖÃÏÔʾ·½Ê½£¬µ÷ÓÃformat¸ñʽ¡£
SimpleDateFormat sdf=new SimpleDateFormat("yyyyÄêMMÔÂddÈÕ");
String date=sdf.format(blog.getCreatedTime());
sdf=new Simp ......
1.±È½Ïºó£¬·µ»Ø0,1,-1 µÄ½á¹û£¬¿ÉÒÔÓÃ
return (thisVal<anotherVal ? -1 : (thisVal==anotherVal ? 0 : 1));
ЧÂʸü¸ß
ÒÔÏÂת×Ô http://bluelzx.javaeye.com/blog/200987
1.
Á½ÖֱȽϽӿڷÖÎö
ÔÚ
“
¼¯ºÏ¿ò¼Ü
”
ÖÐÓÐÁ½ÖֱȽϽӿڣº
Comparable
½Ó¿ÚºÍ
Comparator
½Ó¿Ú¡£
Compara ......