Java Taskbook Level 3.5

Задание 1

Given a text with words. Write into an array all words that begin with the letter "a".

Задание 2

Given an array of numbers, check that all elements of this array are positive numbers.

Задание 3

Given a string:

java"1203405"

Find the position of the last zero in the string.

Задание 4

Two arrays are given:

javaint[] arr1 = [1, 2, 3, 4, 5];
int[] arr2 = [4, 5, 6, 7, 8];

Print the common elements of these arrays to the console:

java4
5
Задание 5

Given a line:

javaString str = "abc def jhi";

Count the number of words in this line.