undefined

Open Source Your Knowledge, Become a Contributor

Technology knowledge has to be shared and made accessible for free. Join the movement.

Create Content

Arrays

public class ArrayExample {
public static void main(final String[] args) {
final int n = 10;
final int[] ar = new int[n];
for (int i = 0; i < ar.length; i++) {
ar[i] = i;
}
for (final int e : ar) {
System.out.print(e + " ");
}
}
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Open Source Your Knowledge: become a Contributor and help others learn. Create New Content