So I have an array and I need to get the values of it that are larger than a set integer. It would be something like this apart from it doesn't work due to different data types.

myVariable = array[i]>otherVariable;

where myVariable and otherVariable are integers. Any help?

The expression (array>otherVariable) is boolean - meaning it will return true if indeed array is bigger than otherVariable and false otherwise. If you are trying to insert into myVariable the largest of the two variables, you might want to take a look at the Math class, spcifically the max(int a, int b) method.