How To Check If An Array Contains An Element In Java