java arrey code example Example: array java int[] intArray = new int[20]; String[] cars = {"Volvo", "BMW", "Ford", "Mazda"};