/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package haridalamsemingguwhiledo;
/**
*
* @author komp34
*/
public class hariDalamSemingguWhileDo {
/**
* @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 : “);
int i = 0;
while(i<hari.length){
System.out.println(i+". "+hari[i]);
i++;
}
}
}