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

javaÈÕÆÚ´¦ÀíSystem£¨1£©

È¡µÃµ±Ç°ÏµÍ³Ê±¼ä   System.currentTimeMillis()
·µ»ØºÁÃëʱ¼ä£¬ÎªlongÐÍÕûÊý£¬
¸Ãº¯ÊýÔÚ½øÐÐϵͳÐÔÄܼà¿Øʱ×î³£Óõ½
Àý£º
  long start = System.currentTimeMillis();
  //Òª¼à¿ØµÄ´úÂë¶Î
  long end = System.currentTimeMillis();
  System.out.println(end-start);
ÓÐʱҪ¼à¿ØµÄ´úÂë·Ö²¼ÔÚ¸÷¸öÀàÖУ¬¿ÉÒÔ
System.out.println("µ±Ç°Î»ÖÃXX"+System.currentTimeMillis());
¿ÉÒÔ¿´³öÔÚÄÄЩ´úÂëÖ´ÐеÄʱ¿ÌÊǶàÉÙ£¬¾Í¿ÉÒԾݴ˷ÖÎö³öÄÄÒ»¶Î´úÂëÖ´ÐеÄʱ¼ä³¤£¬´Ó¶ø·ÖÎöϵͳÐÔÄܵÄÆ¿¾±ËùÔÚ


Ïà¹ØÎĵµ£º

javaÈ¥³ý×Ö·û´®ÖеĿոñ¡¢»Ø³µ¡¢»»Ðзû¡¢ÖƱí·û

javaÈ¥³ý×Ö·û´®ÖеĿոñ¡¢»Ø³µ¡¢»»Ðзû¡¢ÖƱí·û
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class StringUtil {
public static void replaceBlank()
{
Pattern p = Pattern.compile("\\s*|\t|\r|\n");
String str="I am a, I am Hello ok, \n new line ffdsa!";
System.out.p ......

JavaÃæÊÔÌâÿÈÕÎåÌâ(2010/02/26)


ÎÊÌâ1.
public static void append(String str){
str += " Append!";
}
public static void append(StringBuffer sBuffer){
sBuffer.append(" Append!");
}
public void test(){
String str = "Nothing";
append(str);
System.out.println(str);
StringBuffer sBuffer = new StringBuffer("Nothing" ......

AndroidС֪ʶһ: ´ÓÃüÁîÐÐÆô¶¯JavaÓ¦ÓÃ&Ôö¼ÓJavaÓ¦ÓÃ


1.              
Ôö¼ÓJavaÓ¦ÓÃ
ÔÚandroid_2.1/packages/appsÔö¼Ó¸ÃÏîÄ¿£»
ÔÚbuild/target/product/generic.mkµÄPRODUCT_PACKAGESºóÃæÔö¼Ó¶ÔÓ¦°üµÄÃû×Ö¡£
 
1.1          
´ÓÃüÁîÐ ......

Ò»´ÎÐÔÀíÇåjava ÖÐµÄ Àà¡¢³éÏóÀà¡¢½Ó¿Ú¡¢¼Ì³Ð¡¢¶ÔÏó

ÀàÊǹ㷺µÄ¸ÅÄ±íʾһ¸öÓй²Í¬ÐÔÖʵÄȺÌå¡£È磺ÈËÀà¡£
´úÂ룺
       // ÉùÃ÷Ò»¸öÀà“Human”
            class Human{
            priv ......

±±¾©£ºJAVA¸ß¼¶¹¤³Ìʦ

ÓÉÓÚ¹«Ë¾ÒµÎñÔö³¤£¬ÏÖ¼±ÐèÕÐƸ·ûºÏÈçÏÂÌõ¼þJAVA¸ß¼¶Èí¼þ¹¤³Ìʦ  Èô¸ÉÃû
1¡¢¾ßÓÐÁ¼ºÃµÄjava¼¼Êõ֪ʶºÍ¾­Ñ飻
2¡¢¾ß±¸Á¼ºÃµÄ½â¾öÎÊÌâµÄÄÜÁ¦ÒÔ¼°³öÉ«µÄÍŶӺÏ×÷ÄÜÁ¦£»
3¡¢ÊìϤJ2EE¼Ü¹¹ºÍ¿ª·¢Ä£Ê½£¬ÊìϤMVCÉè¼Æģʽ£»
4¡¢ÊìϤhibernate¡¢struts2¡¢spring£»
5¡¢ÄÜ°´Õչ淶µÄÈí¼þ¿ª·¢Á÷³Ì£¬Íê³ÉÈí¼þµÄÐèÇó¡¢Éè¼Æ¡¢±àÂëº ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ