I am fairly confident in most uses of all operators used in
Java, but there are some that still cause a bit of confusion. They would be:
^ (XOR) on Binary or boolean;
? - for instance: (as seen in MindQ)
Q).If arr[] contains only positive integer values, what does this function do?
public int guessWhat( int arr[] )
{ int x= 0;
for( int i = 0; i < arr.length; i++ )
x = x < arr[i] ? arr[i] : x; return x;
}
/* Will this return the highest positive integer value in this array? */ If anyone knows a good (and concise) source on these operators and there functions, could they please post a link up? It would be greatly appreciated.
Thanks,
Thomas