How to increment a java String through all the possibilities?

Posted by dacracot on Stack Overflow See other posts from Stack Overflow or by dacracot
Published on 2008-12-04T21:02:24Z Indexed on 2010/04/10 8:23 UTC
Read the original article Hit count: 415

Filed under:
|
|

I need to increment a String in java from "aaaaaaaa" to "aaaaaab" to "aaaaaac" up through the alphabet, then eventually to "aaaaaaba" to "aaaaaabb" etc. etc.

Is there a trick for this?

© Stack Overflow or respective owner

Related posts about java

Related posts about string-manipulation