ת[ÊÕ¼¯javaµÄ³£Óú¯Êý´úÂë]
package net.java2000.tools;
/**
* Title: Java Bean ¹¤¾ß
* Description:
* Copyright: Copyright (c) 2001
* Company: JAVAÊÀ¼ÍÍø
* @author ÕÔѧÇì
* @version 1.0
*/
import java.util.*;
import java.util.regex.Pattern;
public class StrTools {
/**
* ·Ö¸î×Ö·û´®
*
* @param str String Ôʼ×Ö·û´®
* @param splitsign String ·Ö¸ô·û
* @return String[] ·Ö¸îºóµÄ×Ö·û´®Êý×é
*/
@SuppressWarnings("unchecked")
public static String[] split(String str, String splitsign) {
int index;
if (str == null || splitsign == null)
return null;
ArrayList al = new ArrayList();
while ((index = str.indexOf(splitsign)) != -1) {
al.add(str.substring(0, index));
str = str.substring(index + splitsign.length());
}
al.add(str);
return (String[]) al.toArray(new String[0]);
}
/**
* Ìæ»»×Ö·û´®
*
* @param from String Ôʼ×Ö·û´®
* @param to String Ä¿±ê×Ö·û´®
* @param source String ĸ×Ö·û´®
* @return String Ìæ»»ºóµÄ×Ö·û´®
*/
public static String replace(String from, String to, String source) {
if (source == null || from == null || to == null)
return null;
StringBuffer bf = new StringBuffer("");
int index = -1;
while ((index = source.indexOf(from)) != -1) {
bf.append(source.substring(0, index) + to);
source = source.substring(index + from.length());
Ïà¹ØÎĵµ£º
1.3. ·´Éä»úÖƵŦÄÜ
JAVA·´Éä»úÖÆÖ÷ÒªÌṩÁËÒÔϹ¦ÄÜ£º
1.ÔÚÔËÐÐʱÅжÏÈÎÒâÒ»¸ö¶ÔÏóËùÊôµÄÀà
2.ÔÚÔËÐÐʱ¹¹ÔìÈÎÒâÒ»¸öÀàµÄ¶ÔÏó
3.ÔÚÔËÐÐʱÅжÏÈÎÒâÒ»¸öÀàËù¾ßÓеijÉÔ±±äÁ¿ºÍ·½·¨£¨Í¨¹ý·´ÉäÉõÖÁ¿ÉÒÔµ÷ÓÃprivate·½ ......
l JBS
1.Áоٳö 10¸öJAVAÓïÑÔµÄÓÅÊÆ
a:Ãâ·Ñ£¬¿ªÔ´£¬¿çƽ̨(ƽ̨¶ÀÁ¢ÐÔ)£¬¼òµ¥Ò×Ó㬹¦ÄÜÍêÉÆ£¬ÃæÏò¶ÔÏ󣬽¡×³ÐÔ£¬¶àỊ̈߳¬½á¹¹ÖÐÁ¢£¬ÆóÒµÓ¦ÓõijÉÊìƽ̨, ÎÞÏßÓ¦ÓÃ
2.ÁоٳöJAVAÖÐ10¸öÃæÏò¶ÔÏó±à³ÌµÄÊõÓï
a:°ü£¬À࣬½Ó¿Ú£¬¶ÔÏó£¬ÊôÐÔ£¬·½·¨£¬¹¹ÔìÆ÷£¬¼Ì³Ð£¬·â×°£¬¶à̬£¬³éÏ󣬷¶ÐÍ
3.ÁоٳöJAVAÖÐ6¸ ......
ÓÉÓÚÍøÂç´ø¿íÓÐÏÞ,ËùÒÔÊý¾ÝÎļþµÄѹËõÓÐÀûÓÚÊý¾ÝÔÚInternetÉϵĿìËÙ´«Êä,ͬʱҲ½Ú
Ê¡·þÎñÆ÷µÄÍâ´æ¿Õ¼ä¡£
¡¡¡¡Java 1.1ʵÏÖÁËI/OÊý¾ÝÁ÷ÓëÍøÂçÊý¾ÝÁ÷µÄµ¥Ò»½Ó¿Ú,Òò´ËÊý¾ÝµÄѹËõ¡¢ÍøÂç´«ÊäºÍ½â
ѹËõµÄʵÏֱȽÏÈÝÒ×,ÏÂÃæ½éÉÜÀûÓÃZipEntry¡¢ZipInputStreamºÍZipOutputStreamÈý¸öJava
ÀàʵÏÖzipÊý¾ÝѹËõ·½Ê½µÄ±à³Ì·½·¨¡£ ......
jdk,j2ee,j2se,j2meµÄ¸ÅÄîÇø±ð
1.
JDKÊÇJava development toolkit,Ï൱ÓÚÊÇJavaµÄ¿âº¯Êý£¬ÊDZàÒ룬ÔËÐÐjava³ÌÐòµÄ¹¤¾ß°ü¡£
J2EEÊÇJava 2 enterprise editionÊÇJavaµÄÒ»ÖÖÆóÒµ°æÓÃÓÚÆóÒµ¼¶µÄÓ¦Ó÷þÎñ¿ª·¢
J2SEÊÇJava 2 standard editionÊÇJavaµÄ±ê×¼°æ,ÓÃÓÚ±ê×¼µÄÓ¦Óÿª·¢
J2MEÊÇJava 2 Micro EditionÊÇJavaµÄ΢ÐÍ°æ,³£ ......
1£ºjdk¿ª·¢ÖÐϵͳ»·¾³±äÁ¿ÉèÖãº
·½·¨ÈçÏ£º
Win2000ÖУº
ÓÒ¼üÎҵĵçÄÔ--¡·ÊôÐÔ--¡·¸ß¼¶--¡·»·¾³»·¾³±äÁ¿
classpath=.;jdk°²×°Ä¿\lib
path=jdk°²×°Ä¿Â¼\bin
×¢Ò⣺һ¶¨²»¿ÉºöÂÔ“.”¡£
......