/*
* 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 java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class M8_nomorBuff {
public static void main(String[] args) throws IOException {
BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
int nomor[] = new int[10];
for (int i=0; i<nomor.length; i++) {
System.out.print("Masukkan nomor " + (i+1) + ": ");
nomor[i] = Integer.parseInt(input.readLine());
}
for (int number : nomor) {
System.out.println(number);
}
}
}
Related