how to create array in android studio java code example Example: android studio define array private int[] memory = new int[3000];