(int[] arr)
| 41 | |
| 42 | //Ч�����ÿ� |
| 43 | public static void printArray(int[] arr) { |
| 44 | System.out.print("["); |
| 45 | for(int x=0; x<arr.length; x++) { |
| 46 | if(x == arr.length - 1) { |
| 47 | System.out.print(arr[x]); |
| 48 | } else { |
| 49 | System.out.print(arr[x]+", "); |
| 50 | } |
| 51 | } |
| 52 | System.out.println("]"); |
| 53 | } |
| 54 | |
| 55 | /* |
| 56 | д����ʵ�֣� |