In: Computer Science
how to write in java;
Write a method int[] coPrime[int num, int[]numbers]
{
// instructions are that it returns an array of all the elements of the int[] array numbers which are coprime with x
}
Note that the array that is returned may be an empty array--you will have to count how many times gcf(x, numbers[i]) == 1. ASSUME numbers is not null and not empty.