第1个回答 2016-01-11
public class PrintTest{
static final String[] str = {"one","two","three","four","five"};
public static void main(String[] args){
for(int i=0; i < str.length; i++){
System.out.print(str[i]);
if (i< str.length-1 ){
System.out.print(",");
}
}
System.out.println();
}
}
第2个回答 2016-01-11
String[] strArr={"one","two","three","four"};
for(int a=0;a<strArr.length;a++){
System.out.println(strArr[a]);
}本回答被网友采纳