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

java´ÓÍøÒ³ÖÐÌáȡͼƬµØÖ·

import java.util.regex.Matcher;
import java.util.regex.Pattern;
1£ºÕâ¸öÊÇÄõ½Ò»¸ö×Ö·ûÈ¡µÃÀïÃæµÄͼÏñµØÖ··µ»ØÒ»¸öList 
public static List<String> getImgStr(String htmlStr){     
         String img="";     
         Pattern p_image;     
         Matcher m_image;     
         List<String> pics = new ArrayList<String>();  
     
         String regEx_img = "<img.*src=(.*?)[^>]*?>"; //ͼƬÁ´½ÓµØÖ·     
         p_image = Pattern.compile   
                 (regEx_img,Pattern.CASE_INSENSITIVE);     
        m_image = p_image.matcher(htmlStr);   
        while(m_image.find()){     
             img = img + "," + m_image.group();     
             Matcher m  = Pattern.compile("src=\"?(.*?)(\"|>|\\s+)").matcher(img); //Æ¥Åäsrc  
             while(m.find()){  
                pics.add(m.group(1));  
             }  
         }     
  


Ïà¹ØÎĵµ£º

´óרÉúJAVAµÄÕâÌõ·

     ÎÒÓÐÒ»ÍòԪǮ£¬ÊǽèµÄ£¡ÎÒ½èÁËÕâÒ»Íò¿éÇ®×¼±¸È¥±±¾©¼ÌÐøÑ§Ï°¡£
     ÎÒÊÇÒ»¸ö´óרÉú£¬²»ÈëÁ÷ÎÒѧУ£¡ËäÈ»ÎÒÏàÐÅÒ»¸öÈ˵ÄŬÁ¦ÄܸıäÃüÔË£¡ËùÒÔÎÒÒ»Ö±¶¼ÔÚŬÁ¦µÄѧϰJAVA¼¼Êõ£¬Ï£ÍûÄÜÔÚÕâÌõ·ÉÏ×ߵĸüÔ¶£¡ÎÒÓÐÅ®ÅóÓÑ£¬¶ÔÎҺܺã¬Ò²ºÜÖ§³ÖÎÒ£¡µ«ÎÒ´Ó¸ñÁ¦¿Õµ÷´ÇÖ°£¬ÎÒ¾ÍÑ¡ÔñÁËJA ......

×îÖØÒªµÄ Java EE ×î¼Ñʵ¼ù 2. ²»Òª×öÖØ¸´µÄ¹¤×÷¡£


2. ²»Òª×öÖØ¸´µÄ¹¤×÷¡£
ʹÓó£¼ûµÄ¡¢¾­¹ý֤ʵµÄ¿ò¼Ü£¬Èç Apache Struts¡¢JavaServer Faces ºÍ Eclipse RCP¡£Ê¹Óþ­¹ý֤ʵµÄģʽ¡£
»Øµ½ÎÒÃÇ¿ªÊ¼°ïÖú¿Í»§Ê¹ÓøճöÏÖµÄ Java EE ±ê×¼µÄʱºò£¬ÎÒÃÇ·¢ÏÖ£¨ºÍÐí¶àÆäËûÈËÒ»Ñù£©£¬Í¨¹ýÖ±½ÓʹÓûù´¡µÄ Servlet ºÍ JSP ¹æ·¶¹¹½¨ UI Ó¦ÓóÌÐòÀ´¿ª·¢Óû§½Ó¿Ú¿ª·¢¿ò¼Ü£¬¿ÉÒÔ¼«´óµØÌḠ......

java È«¾Ö±äÁ¿ÊµÏÖ

class   Global   {  
      public   static   final   String   APPNAME=   "xyz";   //È«¾Ö³£Á¿
      public   static   String   currentUser   =   "abc";     // È« ......

JAVAÓë×ãÇò¶ÓµÄÏàËÆµã

JAVAÓкöණ¶«
ǰ¼¸Ìì¿´ÁË¿´ ûÔõôͨÃ÷°×
½ñÌìÔ糿3µã45¿´ÁË»á ¹ú¼ÊÃ×À¼ ¿Í³¡ÌôÕ½ ÇжûÎ÷µÄ±ÈÈü
°¥Ñ½ ºÜˬ
ħÁ¦ÄñÖØ·µË¹Ì¹¸£ÇÅ
ÎÒ¾ÍÏë°¡  ÕâJAVA²»ÊÇÓиö»Ø·ÃµÄº¯ÊýÂð
ºÇºÇ ÍüÁ˽ÐɶÁË
°²ÇÐÂåµÙÔÚÃ×À¼Ê±ÆÚ¾­³£±»¶¯µÄ°¤µ½Ä§Á¦ÄñµÄ¹ú¼ÊÃ×À¼µÄ´òѹ
ÕâºÎ³¢²»ÊÇJAVAÀïÃæµÄÄǸö¼Ì³ÐÂð
»¹ÓÐ ½ñÌì¹úÃ×ÔÚ·æÏßÉÏʹ ......

JAVA CLASSPATH ºÍPATHµÄÇø±ð ¾­µä

JAVA CLASSPATH ºÍPATHµÄÇø±ð ÊÕ²Ø
PATH:¡¡ÓÃÀ´Ö¸¶¨ java ÐéÄâ»ú(JVM) ËùÔÚÔÚĿ¼,Ò²¾ÍÊÇÎÒÃÇ×î³£ÓõÄÓÃÀ´±àÒëjavaÔ´³ÌÐòµÄjavac.exe ºÍÓÃÀ´Ö´ÐÐ *.class ÎļþµÄ java.exe ÕâÁ½¸öÃüÁî¡£ÒÔÎҵĻúÆ÷ΪÀý°É£ºÎÒµÄ jdk °´×°Ä¿Â¼Îª D:\jdk1.5.0_08£¨È·ÇеÄ˵ÎÒµÄÕâ¸öJDK²»Êǰ²×°°æ±¾µÄ£¬Ö±½Ó½âѹµ½ d:\ Ï嵀 £¬´ËʱÎÒµÄ path ¾ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ