Java Taskbook Level 1.2

Задание 1

Given an integer, print the first digit of this number to the console.

Задание 2

Given an integer, print the last digit of this number to the console.

Задание 3

Given an integer, output to the console the sum of the first and last digits of this number.

Задание 4

Given an integer, output the number of digits in this number.

Задание 5

Given two integers, check that the first digits of these numbers match.