package arrayaccess; import java.util.Scanner; public class ArrayAccess { public static void main(String[] args) { Scanner scanner= new Scanner(System.in); System.out.println("Enter the size of the array: "); int size = scanner.nextInt(); int[] array= new int[size]; System.out.println("Enter the elements of the array: "); for(int i=0;i