Java Arraylist Check If Element Is In Dictionary