Contoh Program Array (2)
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package SL275;/**
*
* @author Arin
*/
public class ArraySample {public static void main(String[] args) {
// int[] ages = new int[100];
// for (int i = 0; i < 100; i++) {
// System.out.println(ages[i]);
// }
int[] ages = new int[100];
for (int i = 0; i < ages.length; i++) {
System.out.println(ages[i]);
}
}
}
Categories: Array, Java Programming, Source Code
Array, Java Programming, Source Code
Comments (0)
Trackbacks (0)
Leave a comment
Trackback

Recent Comments