Java Taskbook Level 3.1

Задание 1

Given an array of integers, print to the console only those numbers that are divisible by 5.

Задание 2

Given a line:

java"abcdef"

Get the first three characters of this string:

java"abc"
Задание 3

Given symbol:

javachar chr = 'a';

Find out whether this character is uppercase or lowercase.

Задание 4

Given an array:

javaint[] [1, 2, 3, 4, 5, 6]

Get the following slice from it:

javaint[] [1, 2, 3]
Задание 5

Given an array of integers:

javaint[] arr = {1, 2, 3, 0, 4, 5};

Print the position of the first zero to the console.

Задание 6

Given a line:

cpp"123-456-789"

Replace all hyphens with spaces:

cpp"123 456 789"