SHOW:
|
|
- or go back to the newest paste.
| 1 | - | public class Generator {
|
| 1 | + | a,b,c,d......z then at last index "z". |
| 2 | - | private char[] charset; |
| 2 | + | |
| 3 | it goes like | |
| 4 | - | public Generator() |
| 4 | + | |
| 5 | - | {
|
| 5 | + | aa,ab,ac....az. then |
| 6 | - | charset = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".toCharArray(); |
| 6 | + | |
| 7 | - | } |
| 7 | + | ba,bb,bc,bd........bz then |
| 8 | ||
| 9 | aaaa,aaab,aaac......aaaz then | |
| 10 | - | public void generate(String str, int pos, int length) |
| 10 | + | |
| 11 | - | {
|
| 11 | + | baaa,baab,baac.......baaz to zzzzzzzzzzzzzzzzzzzzzzzzzz |