1 import java.util.Arrays;
2
3 public class Test_Farmat {
4
5 public static void main(String[] args) {
6
7 int[] c =new int[]{23,34,45,67,87,98};
8 int len = c.length;
9 for(int i = 0;i < len;i++){
10 System.out.println(c[i]);
11 }
12 System.out.println("----------------");
13 for(int i:c)
14 System.out.println(i);
15 System.out.println("----------------");
16 System.out.println(Arrays.toString(c));
17
18 }
19
20 }
时间: 2024-09-17 16:15:44