In an assignment I am completing you have to generate a unique short code for every instance of an object created. As well as an internal ID which I used UUID for. The short code has to be only letters in the format abc-abc-abc. I tried to use the reverse regular expression to generate codes that match a particular pattern but for whatever reason Eclipse does not recognize it, there is no import option.
As a side note each object also has to have a date attached to it. The scenario is a virtual journaling app. So essentially each log would have a date attached for when it was posted. But every time I rerun the program the date updates. I have tried saving the date into a variable with no luck can someone please explain how to accomplish these 2 things. Thanks!