package testjavase; public class Test01 { /** * @param args */ public static void main(String[] args) { String[] s = {null,"wwww","ww"}; for(String c : s) System.out.println(c); for (int i = 0 ; i<s.length ; i++){ System.out.println(s[i]+","); } } }
package testjavase; public class Test01 { /** * @param args */ public static void main(String[] args) { String[] s = {null,"wwww","ww"}; for(String c : s) System.out.println(c); for (int i = 0 ; i<s.length ; i++){ System.out.println(s[i]+","); } } }
转载于:https://www.cnblogs.com/xuedexin/articles/5617336.html