public class string {
public static void main(String[] args) {
String [] g1=new String[3];
g1[0]="welcome";
g1[1]="to";
g1[2]="java";
for(String g : g1)
System.out.println(g);//输出数组
}
}
public class string {
public static void main(String[] args) {
String [] g1=new String[3];
g1[0]="welcome";
g1[1]="to";
g1[2]="java";
for(String g : g1)
System.out.println(g);//输出数组
}
}