/*
* 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
*/
public class M8_hariFor {
public static void main(String[] args) {
java.util.Scanner input = new java.util.Scanner(System.in);
String days[] = new String[7];
for (int i=0; i<days.length; i++) {
System.out.print("Masukkan hari ke-" + (i+1) + ": ");
days[i] = input.nextLine();
}
for (int i=0; i<days.length; i++) {
System.out.println(days[i]);
}
}
}
Related