Code in Java & Haskell needed

Job ID: 32407886

Budget: $10 – $30 USD

Write codes both in Java and Haskell that implement the following tasks:

Takes an (array, ArrayList, List) of elements from 1 to n.
The first function should delete even numbers in an array.
The second function should delete odd numbers in an array.
The third function should delete numbers that are divisible by 3.
This process should last till there is only one number left in the array.