private void allInOne() {
// Declaring an array of 5 elements
int[] numbers = new int[5];
// Populating the array, using a for loop
for(int i = 0; i < numbers.length; i++) {
numbers[i] = (i * i * i);
System.out.println(i + " element of the array is: " + numbers[i]);
}
// Display some elements on a if-esle statment
for(int j = 0; j < numbers.length; j++) {
if(numbers[j] < 10)
System.out.println("Value of index " + j + " is less than 10.");
else
System.out.println("Value of index " + j + " is greater than 10.");
}
}