---
# System prepended metadata

title: '009public class Array陣列 {'

---

# 009public class Array陣列 {
int[] array1=new int[];

```

public static void main(String[] args) {
		// 1 - 6 => 各出現次數
		int[] point = new int[6];	// 0 - 5
		for (int i=0; i<100; i++){
			point[(int)(Math.random()*6)]++;
		}

		
		for (int i=0; i<point.length; i++){
			System.out.println( (i+1) + "點出現" + point[i] + "次");
		}
		
		
	}

}
```
