1 Star 0 Fork 0

schwarizard / TEST

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
SplitDemo.java 490 Bytes
一键复制 编辑 原始数据 按行查看 历史
schwarizard 提交于 2016-04-24 23:23 . new
/**
* Created by Think pad on 2016/4/24.
*/
public class SplitDemo {
public static void main(String[] args) {
for(String token : "Justin,Monica,Irene".split(",")) {
System.out.println(token);
}
for(String token : "JustinOrzMonicaOrzIrene".split("Orz")) {
System.out.println(token);
}
for(String token : "Justin\tMonica\tIrene".split("\\t")) {
System.out.println(token);
}
}
}
Java
1
https://gitee.com/schwarizard/TEST.git
git@gitee.com:schwarizard/TEST.git
schwarizard
TEST
TEST
master

搜索帮助