Skip to content

Instantly share code, notes, and snippets.

@brunorsch
Created September 18, 2019 03:16
Show Gist options
  • Save brunorsch/b6539ae6d47a779a61f13b1cee65617d to your computer and use it in GitHub Desktop.
Save brunorsch/b6539ae6d47a779a61f13b1cee65617d to your computer and use it in GitHub Desktop.
public class Main {
public static void main(String[] args) {
int[] array = new int[3];
array[0] = 0;
array[1] = 1;
array[2] = 2;
array[3] = 3;
for(int i = 0; i < array.length; i++) {
System.out.print("Elemento #" + i + ": " + array[i]);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment