🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.lang.java
Article #20391

Re: java �ַ�IJ��

#20391
From: �µĿ�ʼ
Date: Thu, 18 Dec 2003 08:45
23 lines
1588 bytes
re
ͷһ��ע�⵽1.4��String��������ô������
�� �� holyelle.bbs@bbs.nankai.edu.cn (¯��) �Ĵ������ᵽ: ��
: import java.util.regex.*;//JDK1.4
: import java.util.*;
: class Test
: {
:     public static void main(String []args)
:     {//�ַ�IJ��JDK1.4
:         String strtxt = "jack jia ";//TAB
:         Pattern p = Pattern.compile(" ");
:         String[] txt = p.split(strtxt);
:         for(int i=0;i<txt.length;i++)
: ...........................

--
�X�j�[�X�T�X�T�[�X�T�[�[  �X
�U�U�U�d�g�d�T�a�d�T�a�^�j�a
�a�m�^�^�T�a �^ �a �^   �m  

Graduation

�� ��Դ:������δ��վ bbs.pku.edu.cn��[FROM: 218.247.160.2]
Technical Details
Message-ID: <49ghVg$9uG@bbs.pku.edu.cn>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newshosting.com!news-xfer1.atl.newshosting.com!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.happynet.org!PKU

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,GB
X-Google-Thread: f6cb0,4390b1d4940cfe76,start
X-Google-Attributes: gidf6cb0,public
X-Google-ArrivalTime: 2003-12-18 00:46:07 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newshosting.com!news-xfer1.atl.newshosting.com!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.happynet.org!PKU
From: Flux@bbs.pku.edu.cn (�µĿ�ʼ)
Newsgroups: cn.bbs.comp.lang.java
Subject: Re: java �ַ�IJ��
Date: 18 Dec 2003 08:45:21 GMT
Organization: ����δ��վ
Message-ID: <49ghVg$9uG@bbs.pku.edu.cn>
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: Java/M.1071737082.A
Lines: 23