Your task is to design a User
class
The email
property should be implemented in such a way that each time it is modified (assigned a new unique value), the howManyTimesEmailEdited
property increments. The initial setting of the email in the constructor should not count as a modification.
- Fill in the code.
- You can copy the code into IntelliJ/Android Studio, but it shouldn’t be necessary.
- Click “run” – the green triangle. The code will compile and several tests will be run.
- In the logs, you will see “try again” if the solution is incorrect, or “success” and a special code.
- Provide this code in the form below along with your email and click “send”.
- Solutions will be presented the next day on Instagram
ps. Again – there are few ways to achieve that 🙂