Java Taskbook Level 4.5
Print to the console all numbers from 1
to 1000
, the sum of the digits of which is equal to 13
.
The values given are in pixels and contain integers:
String size1 = "12px";
String size2 = "15px";
Add these values together so that the result is also in pixels:
"28px"
Given an array:
int[] {1, 2, 3}
Create a new array so that each element of the first array is repeated twice:
int[] {1, 1, 2, 2, 3, 3}
Given an array:
int[] arr = {1, 2, 3, 4, 5};
Create a new array such that the new array contains all the elements of the first array except for the first N
elements.