package jvm;
public class ChildString {
public static void childStr(String tmp){
int len=tmp.length();
int cir=1;
for(int i=0;i<len;i++){
cir=1;
for(;cir<=len;cir++ ){
int k=i+cir;
if(k<=len){
String hh=tmp.substring(i, i+cir);
System.out.println(hh);
}
}
}
}
public static void main(String[] args) {
// TODO Auto-generated method stub
childStr("abcd");
}
}
370

被折叠的 条评论
为什么被折叠?



