Java Taskbook Level 4.6
Задание 1
Given a string, check that this string consists only of numbers.
Задание 2
Given an integer:
javaint num = 12345;
Get the first even digit from the end of this number.
Задание 3
Write a program that will generate the following string:
java"54321"
Задание 4
Given an array of integers:
javaint[] arr = {123, 102, 345, 350};
Print to the console only those numbers that contain the digit zero.
Задание 5
Given a line:
java"abcdef"
Get every second character of this string:
java"acf"
Задание 6
Given an array:
javaint[] arr = {1, 2, 3, 0, 4, 0, 5, 0};
Create a new array such that the new array contains all the elements of the first array except the elements with value 0.