I need some hints on this: I have lets say a list or a sequence of years with
int startYear = 2010;
int endYear = 2050;
and i have an enum with letters and digits as year codes.
I need this for Barcode generation where i have a timestamp that need to be coded into 3 digits/letters, so i need to map year month and day to a code position.
What i need to do is to map the year sequence to the codes list into a HashMap of keys (the year numbers) and values (the year codes),
but obviously the codes list is not as long as the year sequence so i need to check when the last index is reached and if yes i need to reloop through the codes list until the end of the year sequence is reached.
what i need to achieve is this:
year code
2012 C
2013 D
.
.
2030 Y
2031 1
.
.
2039 9
2040 A
and so on...
unfortunately i could not figure out a way how to do this, couse I'm pretty new to java so I'd appreciate if someone can give me some advice..