Answer:
Explanation:
The following code statements are written in Java and are simple one line statements that can be into any Java code or function. The first code statement creates a simple integer array with 4 predefined values initialized.
1) int[] miles = {1,5,9,22};
The second code statement creates a simple String array with four-string objects in it.
2) String[] nameddirections = {"Up", "Down", "Left","Right"};