JAVA 🔥 Easy Solution 🔥Beginner Friendly 🔥
\n\n# Code\n\nclass MyHashSet {\n    boolean[] arr  ;\n\n    /** Initialize your data structure here. */\n    public MyHashSet() {\n        arr  = new boolean[1
\n\n# Code\n```\nclass MyHashSet {\n    boolean[] arr  ;\n\n    /** Initialize your data structure here. */\n    public MyHashSet() {\n        arr  = new boolean[1000001];\n    }\n    \n    public void add(int i) {\n        arr[i] = true;\n    }\n    \n    public void remove(int i) {\n        arr[i] = false;\n    }\n    \n    /** Returns true if this set contains the specified element */\n    public boolean contains(int i) {\n        return arr[i];\n    }\n}\n```
['Java']