Hi I'm trying to find out if theres anything in a array element.
but != null doesn't work, what other ways could I accomplish this? Ultimately I want anything thats outofbounds be -1.Code:
public static int position(int n, int p)
if (n[p] != null)
Any help would be greatly appreciated!