I have a problem with increasing number and character combinations. What I want is increase from 001 to ZZZ
Example: 001, 002,..., 999, 00A,..., 00Z, 0AA,..., ZZZ
My code look like this:
int numberA = 1000;
int numberB = 1024;
int numberC = 1025;
/*
* Some formulae here
*/
System.out.println(numberA);
//Result: 00A
System.out.println(numberB);
//Result: 00Z
System.out.println(numberC);
//Result: 0A0
Are there any fomulae to solve this problem?