KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > ArrayTypes


1 public class ArrayTypes {
2
3
4     public static void main(String JavaDoc [] args){
5         ArrayTypes a = new ArrayTypes();
6         a.run();
7     }
8     
9     long [] bits;
10
11     public void run(){
12     
13         bits = new long[9];
14         for (int i = 0; i < bits.length; i++){
15             bits[i] = 8;
16         }
17
18         for (int j = 0; j < bits.length; j++){
19             long l = bits[j];
20         }
21         
22     }
23 }
24
Popular Tags