/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package arraydenganloop;
/**
*
* @author Angga
*/
public class arrayDgLoop {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
int[] deret;
deret = new int[10];
for(int i=0; i<10; i++){
deret[i]=(i+1)*100;
}
int loop = 0;
while(loop<10){
System.out.println("Element at Index "+loop+" : "+deret[loop]);
loop++;
}
}
}
waaaah lengkap sob tutorialnya, :-p
SukaSuka