I have a Java program that generates a text file with a word per each line in the file. I want to make the program automatically generate and write the number of each line in the file. This number can have different formats like :
1, 2, 3, ...
a, b, c, ..., z, aa, ab, ac,....
i, ii, iii, ...
Coding this is simple, except for generating those number formats. The first format(1, 2, 3, ...) is of course easy, but is there any java numbers library or logic that can generate consecutive Latin or Letters like the 2nd and 3rd ones i have mentioned above ?