import java.util.StringTokenizer;
public class JusTest {
public static void main(String[] main)
{
String key = "a_charlie_logic";
StringTokenizer st = new StringTokenizer(key, "_");
String str1=st.nextToken();
System.out.println(str1);
System.out.println(st.countTokens());
String str2=st.nextToken();
System.out.println(str2);
System.out.println(st.countTokens());
String str3=st.nextToken();
System.out.println(str3);
System.out.println(st.countTokens());
}
}
| |||||||||
日 | 一 | 二 | 三 | 四 | 五 | 六 | |||
---|---|---|---|---|---|---|---|---|---|
25 | 26 | 27 | 28 | 29 | 30 | 1 | |||
2 | 3 | 4 | 5 | 6 | 7 | 8 | |||
9 | 10 | 11 | 12 | 13 | 14 | 15 | |||
16 | 17 | 18 | 19 | 20 | 21 | 22 | |||
23 | 24 | 25 | 26 | 27 | 28 | 29 | |||
30 | 31 | 1 | 2 | 3 | 4 | 5 |
常用鏈接
留言簿(1)
隨筆檔案
文章檔案
搜索
最新評論

- 1.?re: null和字符串的恩怨
- 評論內容較長,點擊標題查看
- --charlie