Java Taskbook Level 4.7

Задание 1

Given an array of integers:

javaint arr = [123, 456, 789];

Check that it contains a number that contains the digit 3.

Задание 2

Given an array of strings containing integers as strings:

javaString[] arr = ["1", "2", "3", "4", "5"];

Find the sum of the elements of this array.

Задание 3

Given a string:

java"AbCdE"

Change the case of the letters in this line to the opposite. In our case, it should look like this:

java"aBcDe"
Задание 4

Write a program that will generate the following string:

java"-1-2-3-4-5-"
Задание 5

The date is given in the following format:

javaString date = "31-12-2025";

Convert it to the following format:

javaString date = "31 December 2025";