日期:2014-05-20 浏览次数:20701 次
public class randomPersonLine {
public String[] randomPersonLine(int line){
String[] arrayLine = null;
for(int i = 0;i<line;i++){
String lineStr = "";
lineStr += "p";
lineStr += "asdasd";
arrayLine[i] = lineStr;
}
return arrayLine;
}
}
public class AppClass {
public static void main(String[] args){
randomPersonLine line=new randomPersonLine();
String[] str=line.randomPersonLine(10);
String strline = Arrays.toString(str);
System.out.println(strline);
}
}