JavaÕýÔò±í´ïʽ
package com.sy.grasp;
import java.io.IOException;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class RegularExpression {
/**
* @param args
* @throws IOException
*/
public static void main(String[] args) throws IOException {
/*String [] fakeFileData ={
"justin\t64/5/26\t09323432434\t4546465",
"momor\t68/7/23\t43543653\t34535435"
};
for(String data : fakeFileData){
String[] tokens=data.split("\t");
for(String token:tokens){
System.out.print(token+"\t|");
}
System.out.println();
}
* ÏÔʾ½á¹û£º
* justin |64/5/26 |09323432434 |4546465 |
momor |68/7/23 |43543653 |34535435 |
* */
/*String text="abcdebcadxbc";
String[] tokens=text.split(".bc");
for(String token:tokens){
System.out.print(token+" ");
}
System.out.println();
tokens=text.split("..cd");
for(String token:tokens){
System.out.print(token+" ");
}
System.out.println();
* ·µ»Ø½á¹ûÊÇ£º
* d ad
ebcadxbc
½âÊÍ£ºÊ¹ÓÃ.bcÀ´×÷±È¶Ô£¬ÓÉÓÚ·ûºÏµÄ×Ó×Ö·û´®ÓÐabc ebc xbc 3¸ö£¬ËùÒÔsplit()·½·¨»áʹÓÃÕâÈý¸ö×Ö·û´®À´×ö×Ö·û´®·ÖÀë
£¬·µ»ØµÄ¾ÍÊDz»·ûºÏ±í´ïʽ.bcµÄdºÍadÁË£¬Í¬Àí..cd
* */
/*BufferedReader reader=new Bu
Ïà¹ØÎĵµ£º
jdkµÄ°²×°
1¡¢´Ójava.sun.com¸ãÏÂjdk×îеİ汾£¬Ò»°ãÎÒÃÇÓÃ1.6°æ±¾µÄ£¬ÏÂÔØbin¸ñʽµÄjdk£¬¼Ù¶¨ÏÂÔØµÄÎļþÃûΪjdk-6u20-linux-i586.bin¡£
2¡¢chmod u+x jdk-6u20-linux-i586.bin;È»ºó ./jdk-6u20-linux-i586.bin ½âѹ£¬¼Ù¶¨½âѹºóµÄÎļþ¼ÐΪ jdk1.6_20;
3¡¢ÔÚ/usr/local/ ½¨Á¢Ò»¸öinstallµÄĿ¼£¬ È»ºó°Ñ½âÑ ......
send mail use smtp .u can send text or html, send to many peoples if u have a email user and pwd and the smtp of the email which u use.
package org.lc.smtp;
import java.io.IOException;
import java.util.Properties;
import javax.activation.DataHandler;
import javax.mail.Message;
import javax.mai ......
¹úÍâÖøÃûjava¼¼Êõ×ÊÁÏÍøÕ¾
¹úÍâÖøÃûjava¼¼Êõ×ÊÁÏÍøÕ¾
http://www.onjava.com
O'ReillyµÄJavaÍøÕ¾. ÿÖܶ¼ÓÐÐÂÎÄÕÂ
http://java.sun.com
¹Ù·½µÄJava¿ª·¢ÕßÍøÕ¾ - ÿÖܶ¼ÓÐÐÂÎÄÕ·¢±í
http://www.developer.com/java
Ó ......
http://hi.baidu.com/0_net/blog/item/8566fc2bb730c293033bf63e.html
Ò».»ñµÃ¿ØÖÆÌ¨Óû§ÊäÈëµÄÐÅÏ¢
/** *//**»ñµÃ¿ØÖÆÌ¨Óû§ÊäÈëµÄÐÅÏ¢
* @return
* @throws IOException
*/
public St ......
JavaÎÊÌâ¾µä32ÎÊ
µÚÒ»£¬Ì¸Ì¸final£¬ finally£¬ finalizeµÄÇø±ð¡£
µÚ¶þ£¬Anonymous Inner Class £¨ÄäÃûÄÚ²¿Àࣩ ÊÇ·ñ¿ÉÒÔextends£¨¼Ì³Ð£©ÆäËüÀ࣬ÊÇ·ñ¿ÉÒÔimplements£¨ÊµÏÖ£©interface£¨½Ó¿Ú£©£¿
µÚÈý£¬Static Nested Class ºÍ Inner ClassµÄ²»Í¬£¬ËµµÃÔ½¶àÔ½ºÃ£¨ÃæÊÔÌâÓе ......