Set<String> uniqueFruits = new Set<String>();
uniqueFruits.add('Apple');
uniqueFruits.add('Banana');
uniqueFruits.add('Apple'); // Duplicate, will not be added
System.debug(uniqueFruits.contains('Banana')); // Output: true
U2V0PFN0cmluZz4gdW5pcXVlRnJ1aXRzID0gbmV3IFNldDxTdHJpbmc+KCk7CnVuaXF1ZUZydWl0cy5hZGQoJ0FwcGxlJyk7CnVuaXF1ZUZydWl0cy5hZGQoJ0JhbmFuYScpOwp1bmlxdWVGcnVpdHMuYWRkKCdBcHBsZScpOyAvLyBEdXBsaWNhdGUsIHdpbGwgbm90IGJlIGFkZGVkClN5c3RlbS5kZWJ1Zyh1bmlxdWVGcnVpdHMuY29udGFpbnMoJ0JhbmFuYScpKTsgLy8gT3V0cHV0OiB0cnVl