Skip to content

Instantly share code, notes, and snippets.

@jstitch
Created July 25, 2014 05:46
Show Gist options
  • Save jstitch/72ebde61440ecd7ea35a to your computer and use it in GitHub Desktop.
Save jstitch/72ebde61440ecd7ea35a to your computer and use it in GitHub Desktop.
class ArrayDemo {
public static void main(String[] args) {
Integer[] anArray = new Integer[10];
for (Integer i = 0; i < 10; i++) {
anArray[i] = (i + 1) * 100;
}
for (Integer i = 0; i < 10; i++) {
System.out.println("Element at index " + i.toString() + ": " + anArray[i].toString());
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment