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

JavaÖеÄPatternÀàºÍMatcherÀà

¼ò¶øÑÔÖ®£¬ÕâÁ½¸öÀàÊÇÓÃÀ´ÀûÓÃÕýÔò±í´ïʽÑéÖ¤×Ö·û´®ÓÐЧÐԵġ£
PatternÀàÓÃÀ´¶¨ÒåÕýÔò±í´ïʽ¹æÔò£¬MatcherÀàÓÃÀ´¶¨ÒåÒªÑéÖ¤µÄ×Ö·û´®¡£
Ó÷¨£º
Pattern p = Pattern.compile("a*b"); 
Matcher m = p.matcher("aaaaab"); 
boolean b = m.matches();
µ±È»£¬Ò²¿ÉÒÔÖ±½ÓÓÃPatternÀàÖ±½ÓÑéÖ¤£¬Ó÷¨£º
boolean b = Pattern.matches("a*b", "aaaaab");
ÒÔÉÏÊÇÕâÁ½¸öÀàµÄ×î¼òµ¥Ó÷¨£¬ÆäËûÓ÷¨£¬ÒÔºóÂýÂý×ܽᡣ


Ïà¹ØÎĵµ£º

Java 6 ÖÐ×Ô´øµÄ Java DB(derby) Êý¾Ý¿â

а²×°ÁË JDK 6 µÄ³ÌÐòÔ±ÃÇÒ²Ðí»á·¢ÏÖ£¬³ýÁË´«Í³µÄ bin¡¢jre µÈĿ¼£¬JDK 6 ÐÂÔöÁËÒ»¸öÃûΪ db µÄĿ¼¡£Õâ±ãÊÇ Java 6 µÄгÉÔ±£ºJava DB¡£ÕâÊÇÒ»¸ö´¿ Java ʵÏÖ¡¢¿ªÔ´µÄÊý¾Ý¿â¹ÜÀíϵͳ£¨DBMS£©£¬Ô´ÓÚ Apache Èí¼þ»ù½ð»á£¨ASF£©ÃûϵÄÏîÄ¿ Derby¡£ËüÖ»ÓÐ 2MB ´óС£¬¶Ô±È¶¯éüÉÏ G µÄÊý¾Ý¿âÀ´Ëµ¿ÉνÐäÕä¡£µ«Õâ²¢²»·Á°­ Derby ......

java¶ÁÈ¡mp3Îļþ

java¶ÁÈ¡mp3Îļþ ÊÕ²Ø
JMFʵ¼ÊÉÏÊÇJavaµÄÒ»¸öÀà°ü¡£JMF 2.1.1¼¼ÊõÌṩÁËÏȽøµÄýÌå´¦ÀíÄÜÁ¦£¬´Ó¶øÀ©Õ¹ÁËJavaƽ̨µÄ¹¦ÄÜ¡£ÕâЩ¹¦ÄÜ°üÀ¨£ºÃ½Ì岶»ñ¡¢Ñ¹Ëõ¡¢Á÷ת¡¢»Ø·Å£¬ÒÔ¼°¶Ô¸÷ÖÖÖ÷ҪýÌåÐÎʽºÍ±àÂëµÄÖ§³Ö£¬ÈçM-JPEG¡¢H.263¡¢MP3¡¢RTP/RTSP (ʵʱ´«ËÍЭÒéºÍʵʱÁ÷תЭÒé)¡¢Macromedias Flash¡¢IBMµÄHotMediaºÍBeatniksµÄRi ......

Java JNIÉî¶È·ÖÎöÓëʵ¼ù


Java JNIÊÇJava Native InterfaceµÄËõд£¬ÖÐÎÄ¿ÉÒëΪJava±¾µØµ÷Óá£Java Native Interface (JNI)±ê×¼³ÉΪjavaƽ̨µÄÒ»²¿·Ö£¬ËüÔÊÐíJava´úÂëºÍÆäËûÓïÑÔдµÄ´úÂë½øÐн»»¥¡£±¾ÎÄÏòÄúÏêϸ½éÉÜJava JNI¡£
Java »·¾³ºÍÓïÑÔ¶ÔÓÚÓ¦ÓóÌÐò¿ª·¢À´ËµÊǷdz£°²È«ºÍ¸ßЧµÄ¡£µ«ÊÇ£¬Ò»Ð©Ó¦ÓóÌÐòÈ´ÐèÒªÖ´Ðд¿ Java ³ÌÐòÎÞ·¨Íê³ÉµÄһЩÈÎÎ ......

java post get Á¬½ÓÍøÒ³

postºÍgetµÄÇø±ð£º
getÊÇͨ¹ýURLÏò·þÎñÆ÷µÝ½»Êý¾Ý£¬¼´Ìá½»µÄÏà¹ØÐÅÏ¢°üº¬ÔÚµØÖ·À¸µÄURLÖÐ
postÌá½»ºóµØÖ·À¸²»±ä
¿ÉÒÔͨ¹ýJava.net.URLEncoder½«ÖÐÎÄ×Ö·û±äΪ¿ÉÒÔ¼ÓÔÚURLÖÐÓÃÓÚ²éѯµÄ±àÂ룬ÏàÓ¦µÄ£¬Java.net.URLDecoderÓÃÓÚÏà¹ØµÄ½âÂë
Apache¿ªÔ´×éÖ¯ÖеÄhttpclient£¬ËüÁ¥ÊôÓÚJakartaµÄcommonsÏîÄ¿£¬×¨ÃÅÉè¼ÆÀ´¼ò»¯HTTP¿ ......

ɵB×Ô¼º¿´µÄjava±Ê¼Ç£º½âÎöXML

 ½ñÍíÁÄÁËÒ»ÍíÌ죬±ß¿´java ±ßÁÄÌ죬ûÓм¯Öо«ÉñÈ¥¿´¡£Ã»¸ã¶®java¶ÁÈ¡xml µÄ»úÖÆ¡£¿´ÁËһЩÊéÏÈ°ÑËû¼Ç¼һÏ¡£²ÉÓÃDOMÎĵµ¶ÔÏóÄ£ÐÍ£¬µÚÒ»ÖÖ·½·¨À´½âÎö¡£Ìý˵ÕâÖÖ½âÎö»áÓÐһЩȱµã£¬²»¹ý×ÜËãµ÷ÊÔͨÁË£¬ËãÊÇÒ»ÖÖ½ø²½¡£
<?xml version="1.0" encoding="utf-8"?>
<item>
  <node>aa</node&g ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ