Java See If Array Function