Final answer:
To design an application in which the number of days for each month in the year is stored in an array, create an array of integers representing the number of days in each month. Use a loop to display 12 sentences, each containing the month number and the corresponding number of days.
Step-by-step explanation:
To design an application in which the number of days for each month in the year is stored in an array, you can create an array of integers representing the number of days in each month. Here's an example:
int[] daysInMonth = new int[]{31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
Then, you can use a loop to display 12 sentences, each containing the month number and the corresponding number of days. Here's an example:
for (int i = 0; i < 12; i++) {
System.out.println("Month " + (i + 1) + " has " + daysInMonth[i] + " days.");
}