Update WordNetSynonyms.java

create constructor method