Java Check If Array Contains An Element