日期:2014-05-20 浏览次数:20642 次
public static void main(String[] args) { String[] strings=new String[]{"字符1","字符2","字符3","字符4","字符5"}; for (String string : strings) { System.out.println(string); } }
------解决方案--------------------
import java.util.Arrays; public class PrintArgs { public static void main(String[] args) { System.out.println(Arrays.toString(args)); } }