Skip to content

Instantly share code, notes, and snippets.

@LaurentiuGabriel
Created June 20, 2020 18:58
Show Gist options
  • Select an option

  • Save LaurentiuGabriel/6567e535bdb2f6292ccf5ef240fe8582 to your computer and use it in GitHub Desktop.

Select an option

Save LaurentiuGabriel/6567e535bdb2f6292ccf5ef240fe8582 to your computer and use it in GitHub Desktop.
public class App {
public static void main(String[] args) {
int myVariable = 55;
int [] myArray = new int[3];
int[] myArray2 = {1, 2, 3};
myArray[0] = 1;
myArray[1] = 2;
myArray[2] = 3;
System.out.println(myArray[0]);
System.out.println(myArray[2]);
System.out.println(myArray[1]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment