Java Check If Array Contains An Element With Ten