JAVA¸ß¾«¼ÆËã
ΪÁË͵ÀÁ£¬×¨ÃÅÓÃÁËJAVA¸ß¾«¡£¹ûÈ»ºÜ¼òµ¥¡£µ«ÊÇÔÚʹÓÃÇ°Ò»¶¨Òª×¢ÒâÉóÌ⣬ÓÐʱºò¸ù±¾²»ÐèÒªÓø߾«¼ÆËã¡£Ò»¶¨ÒªÓп´ÇåÌõ¼þ¡£
BigInteger
³õʼ»¯ ´Óstringµ½BigInteger:
//´Óintµ½string tring a=String.valueof(int b);
BigInteger big=new BigInteger(string a);
´ÓBigIntegerµ½int
int b=big.intValue()
´Óintµ½BigInteger:
big=BigInteger.valeOf(int b);
´ÓBigIntegerµ½string:
&n
Ïà¹ØÎĵµ£º
µÚÒ»ÖÖ:ЧÂʸß
Map map = new HashMap();
Iterator iter = map.entrySet().iterator();
while (iter.hasNext()) {
Map.Entry entry = (Map.Entry) iter.next();
Object key = entry.getKey();
Object val = entry.getValue();
}
µÚ¶þÖÖ:ЧÂʵÍ,ÒÔºó¾¡Á¿ÉÙʹÓã¡
Map map = new HashMap();
......
1.1.1 ÐÞÁ¶µÚÒ»²ã¾³½ç£º½£Ö¸ËÄ·½£¬ÊÔÎÊÌìÏÂÓëÕù·æ
ÐÞÁ¶µÚÒ»²ã¾³½çµÄ³ÌÐòÔ±£¬¶ÔJava¿ª·¢¼¼Êõ¾¡ÊýÕÆÎÕ£¬¿ª·¢¹¤¾ßÕÆÎÕµÃÒ²½ÏΪæµÊì¡£¿ÉÒÔ½«µÚ¶þ²ã´Î³ÌÐòÔ±½»¸øµÄÈÎÎñÍê³ÉµÃºÜ³öÉ«£¬¿ÉÒÔ°´ÒªÇó¶ÀÁ¢Íê³ÉÀà¡¢½Ó¿ÚºÍËã·¨µÄ¿ª·¢¡£×¢Öؼ¼ÇÉ£¬¶Ô¾ßÌåµÄ±à³ÌÓïÑԷdz£ÊìϤ¡£
ÄÜÁ¦Ö®Ëù¼°£¬½ÔÎÞ²»ÓÃÆ伫¡£ÈÏΪËùÓпª·¢ÖªÊ¶£¬Ô½ÊÇ¿´Æ ......
ʹÓÃÏÂÃæ¼òµ¥µÄJava³ÌÐò²âÊÔÃüÁîÐвÎÊý¸ñʽ¡£
public class Test {
public static void main(String[] args) {
for (int i = 0; i < args.length; i++) {
System.out.println(args[i].length() + ":" + args[i]);
}
}
}
±àÒëºó´ò¿ªcmdÃüÁîÌáʾ·ûÊäÈëÈçÏÂÃüÁî²¢²é¿´½á¹û£º
java Test a aa ......
ÕâÊÇÒ»¸öûÓÐÑéÖ¤ÐÐÕþÇø´úÂëµÄ£¬ËùÒÔÕâ¸ö²»ËãÍêÈ«£¬µ«ÊÇÎÒÃÇÔÚ×öʵ¼ÊÓ¦ÓÃʱ¿ÉÒÔ¼ÓÉÏ£¬ÕâÀïÎÒû¼Ó¡£
Ô´ÂëÈçϽö¹©²Î¿¼.
package ibees.validator;
import java.util.regex.Pattern;
/**
* ³£ÓõÄÑéÖ¤,source charset utf-8
*
* @author hhzxj2008
* */
public class CommonValidator {
public static boolea ......
½Ó¿ÚºÍ³éÏóÀàÊÇjavaÖÐ×îÖØÒªµÄ2¸öÌØÕ÷£¬ÔÚ±¾ÊéÖÐдµ½Á˾ßÌåµÄÓ¦Ó㬿´ÁËʹÎÒ»ÐÈ»´óÎò¡£
ÔÚ½Ó¿ÚÖУ¬ËùÓеķ½·¨¶¼ÊÇpublic µ±È»ÔÚ½Ó¿ÚÖÐÒ²¿ÉÒÔÓÐpublic static finalÊôÐÔ
ΪʲôʹÓýӿڣº
1½Ó¿ÚÊǶԿɲåÈëÐԵı£Ö¤
¶Ô¼Ì³ÐµÄ×ÓÀàÓÐÓ°Ï죬¶Ô³¬ÀàûÓÐÓ°Ï죬¼õÉÙñîºÏ¶È
2½Ó¿Ú£¨ÒÔ¼°³éÏóÀࣩÓÃÀ´ÉùÃ÷Ò»¸öÐ嵀 ......