Java Taskbook Level 6.3

Задание 1

Ask the user to enter two integers via the console. Fill the array with integers from the minimum number entered to the maximum.

Задание 2

Ask the user to enter a date in the format year-month-day. Determine the day of the week that corresponds to this date.

Задание 3

Ask the user to enter a year. Determine whether it is a leap year or not.

Задание 4

Given some array, for example, like this:

java{1, 2, 3, 4, 5, 6}

Swap pairs of elements in this array:

java{2, 1, 4, 3, 6, 5}