Update ExampleTranslator.java

using set instead of iterable