I’m in the process of creating a method to generate a unique id, of type Integer, and was wondering how to do the following.
In my Object I want to call the generateUniqueID method from my setter method. The generateUniqueID will generate an incrementing number and then append it to a string
e.g. Reminder-1, Reminder-2 etc….
I’m not quite sure how to do this though and was wondering if anyone could help?
Thank you
As long as there is no concurrency.