There's no way to know the difference, if you're returning an int in all cases. If you return an Integer, you could return null in the case where no single number exists. Or you could throw an Exception if the function expects a single number to be there.
Posts made by idm04
RE: What if no single number exists in the array