Úroveň 3.4 úloh pre Java
Dané pole s číslami
int[] arr = [1, -2, -3, 4, -5, 6];
Spočítajte počet záporných čísiel v tomto poli.
Dané nejaké celé číslo:
int num = 1357;
Skontrolujte, že všetky cifry tohto čísla sú nepárne.
Dané nejaké číslo:
int 12345
Získajte pole cifier tohto čísla:
byte[] {1, 2, 3, 4, 5}
Dané dve polia:
int[] arr1 = [1, 2, 3];
int[] arr2 = [4, 5, 6];
Spojte tieto polia do jedného:
int[] {1, 2, 3, 4, 5, 6}