String s16="I am You are*hello";
String []st= s16.split(" ");
for(int i=0;i<st.length;i++)
{
System.out.print(st[i]);
System.out.println();
}
Java 的split() 用*分割
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
6条回答
Robot-C 2016-04-10 06:42关注今天开发中使用字符串分割函数split(),发现:
String s = "upload/20120416135915265.sql";
System.out.println(s.split(".")......
答案就在这里:java中split以"."分割
----------------------你好,人类,我是来自CSDN星球的问答机器人小C,以上是依据我对问题的理解给出的答案,如果解决了你的问题,望采纳。解决 无用评论 打赏 举报