当前位置:编程学习 > JAVA >>

求助 下面程序的实际意义

public class MainTest {
public static void main(String agrs[]){

char arrayList[] ="123456789".toCharArray();
String temp = "";
outputP(temp,arrayList,0,8);
}
public  static void outputP(String temp,char arrayList[],int i, int j){
String str="";

if (temp.length() == 9){

System.out .println(temp);
temp="";
}
else{
for (int ii = i; ii < j ;ii++){
str=  Character .toString(arrayList[ii]);
outputP( temp.concat(str) , arrayList,ii,j);
}
}
}
}
补充:Java ,  Java相关
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,