Posted on 2011-04-22 17:24
哈希 阅读(134)
评论(0) 编辑 收藏 所属分类:
java 代码
字符串学习:
String strss=null;
String [] str={"hello","world","janaury","february","thirsday","monday"};
for(int i=0;i<str.length;i++){
strss=str[i]+"/";
}
//String strs="nihao a he llo worl d dsa a d f a d";
String [] sr=strss.split("/");
for(int i=0;i<str.length;i++){
System.out.println(str[i]);
String strs="nihao a he llo worl d dsa a d f a d";
String [] str=strs.split("");
for(int i=0;i<str.length;i++){
System.out.println(str[i]);
}