Java Taskbook Level 7.3

Задание 1

Create a method that will take an array as a parameter and return a new array that does not contain duplicate elements.

Задание 2

Create a method that will take an array as a parameter and return a new array that does not contain identical, adjacent elements.

Задание 3

Create a method that takes an integer as its first parameter and returns the number of its digits specified by the second parameter.

Задание 4

Make a method that takes a number as a parameter and checks whether it is prime or not.

Задание 5

Create a method that takes an array of numbers as a parameter and returns the maximum and minimum values ​​from this array as the following array:

java[9, 1]