- package site.istak.org.tw;
- import java.util.Random;
- public class main {
- public static void main(String args[]){
- Random random = new Random();
- int num[] = new int [10];
- num[0] = 8520;
- num[1] = 951;
- num[2] = 753;
- num[3] = 98765432;
- num[4] = 12345678;
- num[5] = 88888888;
- num[6] = random.nextInt(100);
- num[7] = 65455;
- num[8] = random.nextInt();
- num[9] = 10000000;
- System.out.println(num[5]);
- }
- }
-
複製代碼 |