Java Taskbook Level 5.7
Print to the console all numbers in the range from 10
to 1000
, the sum of the first and second digits of which is equal to five.
Given an array:
{
{1, 2, 3},
{4, 5, 6},
{7, 8, 9},
}
Merge the elements of this array into one one-dimensional array:
{1, 2, 3, 4, 5, 6, 7, 8, 9}
Two lines are given:
String str1 = "12345";
String str2 = "45678";
Get characters that are in both lines:
"45"