java ÈçºÎÅäÖû·¾³±äÁ¿
ÅäÖÃjava »·¾³±äÁ¿ºÜ¼òµ¥ £º
Ê×ÏÈ:
1¡¢Ë«»÷“ÎҵĵçÄÔ”
2¡¢Ë«»÷“¿ØÖÆÃæ°å”
3¡¢Ë«»÷“ϵͳ”
4¡¢µã»÷“¸ß¼¶”Ñ¡Ï£¬
5¡¢µã»÷“»·¾³±äÁ¿”°´Å¥
Æä´Î:
1¡¢±äÁ¿Ãû: path
±äÁ¿Öµ: C:\jdk1.6.0\bin;
2¡¢±äÁ¿Ãû: classpath
±äÁ¿Öµ: .;%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\lib\dt.jar;
3¡¢±äÁ¿Ãû£º JAVA_HOME
±äÁ¿Öµ£º C:\jdk1.6.0
×îºó:
¿ªÊ¼
ÔËÐÐ cmd
javac »Ø³µ
ok
Ïà¹ØÎĵµ£º
Ò» DOM ÒÔÏ´úÂëÓÃDOMÊÇÉú³ÉÒ»¸öXMLÎĵµ
package xml;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
imp ......
1.javaÀà¿â×Ô´øµÄ·½·¨£º
1¡¢public boolean isNumber(String str)
{
if(java.lang.Character.isDigit(msg.charAt(0))){
return true;
}
return false;
}
}
2.¸üУºÓÃÕýÔò±í´ïʽ
Ê×ÏÈÒªimport java.util.regex.Pattern ºÍ java.util.regex.Matcher
ÕâÁ½¸ö°ü£¬»òÕß²»µ¼ ......
WindowsÏÂJAVA»·¾³±äÁ¿µÄÉèÖÃ
WindowsÏÂJAVAÓõ½µÄ»·¾³±äÁ¿Ö÷ÒªÓÐ3¸ö£¬JAVA_HOME¡¢CLASSPATH¡¢PATH¡£ÏÂÃæÖð¸ö·ÖÎö¡£
JAVA_HOME Ö¸ÏòµÄÊÇJDKµÄ°²×°Â·¾¶£¬Èçx:\JDK_1.4.2£¬ÔÚÕâ·¾¶ÏÂÄãÓ¦¸ÃÄܹ»ÕÒµ½bin¡¢libµÈĿ¼¡£ÖµµÃÒ»ÌáµÄÊÇ£¬JDK µÄ°²×°Â·¾¶¿ÉÒÔÑ¡ÔñÈÎÒâ´ÅÅÌĿ¼£¬²»¹ý½¨ÒéÄã·ÅµÄĿ¼²ã´ ......
1. ¸ÅÊö
±¾ÎÄÖ÷Òª°üÀ¨ÒÔϼ¸¸ö·½Ã棺±àÂë»ù±¾ÖªÊ¶£¬java£¬ÏµÍ³Èí¼þ£¬url£¬¹¤¾ßÈí¼þµÈ¡£
ÔÚÏÂÃæµÄÃèÊöÖУ¬½«ÒÔ"ÖÐÎÄ"Á½¸ö×ÖΪÀý£¬¾²é±í¿ÉÒÔÖªµÀÆäGB2312±àÂëÊÇ"d6d0 cec4"£¬Unicode±àÂëΪ"4e2d 6587"£¬UTF±àÂë¾ÍÊÇ"e4b8ad e69687"¡£×¢Ò⣬ÕâÁ½¸ö×ÖûÓÐiso8859-1±àÂ룬µ«¿ÉÒÔÓÃiso8859-1±àÂëÀ´"±íʾ"¡£  ......
ÉÏÎÄ̸µ½ÁËÊÊÅäÆ÷ģʽ£¬ÒªÊÇTargerÄ¿±ê½ÇÉ«ÓÐ20·½·¨£¬ÄÇôÿ¸öÊÊÅäÆ÷¶¼ÒªÈ¥ÊµÏÖ½Ó¿ÚÖÐÕâЩ·½·¨£¬ÕâÑù×ö¸Ð¾õÌ«·Ñ¾¢¡£ ÕâÖÖÇé¿öÏ£¬¿ÉÒÔ¿¼ÂÇʵÏÖ¸öĬÈÏÊÊÅäÆ÷£¬È»ºóʵ¼ÊµÄʵÏÖÄ¿±ê½ÇÉ«½Ó¿ÚµÄÀà¿ÉÒÔ¼¯³ÉÕâ¸öĬÈÏÊÊÅäÆ÷£¬È»ºóÖØдĬÈÏʵÏֵķ½·¨¼´¿É¡£ Ò»¡¢ÔÀíͼ ......