package s2;
class test2 {
int a[] = { 1, 2, 3, 4, 5 };
void out()
{ for (int j = 0; j < a.length; j++)
System.out.print(a[j] + "");
}
public static void main(String[] args) {
//2.下面程序段的执行结果是
test2 my = new test2();
my.out();
}
}
class test2 {
int a[] = { 1, 2, 3, 4, 5 };
void out()
{ for (int j = 0; j < a.length; j++)
System.out.print(a[j] + "");
}
public static void main(String[] args) {
//2.下面程序段的执行结果是
test2 my = new test2();
my.out();
}
}