/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package haridalamsemingguforloop;
/**
*
* @author komp34
*/
public class hariDalamSemingguForLoop {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
String[] hari={“Monday”, “Tuesday”, “Wednesday”, “Thusday”, “Friday”, “Saturday”, “Sunday”};
System.out.println(“Nama Hari dalam seminggu : “);
for(int i=0;i<hari.length;i++)
System.out.println(i+". "+hari[i]);
}
}