/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package Matkul;

/**
 *
 * @author KUMAL
 */
import javax.swing.JOptionPane;
public class M8_nomorJOP {
    public static void main(String[] args) {
        int nomor[] = new int[10];
        for (int i=0; i<nomor.length; i++) {
            nomor[i] = Integer.parseInt(JOptionPane.showInputDialog("Masukkan nomor ke-" + (i+1) + ": "));
        }
        for (int number : nomor) {
            JOptionPane.showMessageDialog(null, number);
        }
    }
}