package work01.w1;

/**
 * 使用类String类的分割split将给定字符串分割
 * 
 * @author Eric
 * @date 2012-9-13
 */
public class StringSplit {

	public static void main(String[] args) {
		String str = "Solutions to selected exercises can be found in the electronic document The Thinking in Java Annotated Solution Guide, available for a small fee from BruceEckel";
		String[] strs = str.split(" |,");
		for (String t : strs)
			System.out.println(t);
	}

}
最近下载更多
想什么名字的好麻烦  LV1 2020年4月3日
tyyeng  LV18 2020年1月31日
scoari  LV2 2018年9月10日
Ollydbg  LV2 2016年11月4日
BravoZhang  LV2 2015年12月16日
wzg356  LV18 2015年1月3日
最近浏览更多
3334004690  LV10 2024年5月28日
SZEPEZS  LV9 2022年6月10日
Zeorwyc  LV8 2022年5月7日
LikL9420  LV12 2021年7月13日
212600  LV7 2021年2月20日
dashenshi 2021年1月30日
暂无贡献等级
dongzhan  LV12 2020年12月22日
期待爱 2020年9月10日
暂无贡献等级
hfk2020  LV2 2020年5月22日
想什么名字的好麻烦  LV1 2020年4月3日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友