Java Taskbook Level 5.5
Ask the user to enter an integer between 1
and 10
via the console. If something else is entered, ask the user to enter the number again.
Create the following array using loops:
int[] {
{1, 2, 3},
{1, 2, 3},
{1, 2, 3},
{1, 2, 3},
{1, 2, 3},
}
Given a string:
"abcdeabc"
Clear it from duplicate characters:
"abcde"
Given a string:
"abcde"
Convert all odd letters of this line to uppercase. In our case, we should get the following:
"AbCdE"