File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

incrementing characters

 
tom brownlee
Greenhorn
Posts: 28
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi everyone...can anybody help?
how do you increment a 3 letter / 3 digit command line input so that it prints out the input and the next letter/digit in the sequence???and also the number of sequences left???
ie aaa000 = start of sequence, zzz999 = end of sequence.
eg input 'drg569' prints out 'drg569, drg 570, 17439920 left
( 26*26*26*10*10*10 )
(- 4*18* 7*5 * 6* 9)
( ----------------- )
( 17439920 )
also what about sfz999 to sga000???
any help???
 
Kaspar Dahlqvist
Ranch Hand
Posts: 128
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Howdy!
This is probably a silly solution, but you might get it to work for you:


Hope this helps!
//Kaspar
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please don't post the same question in multiple forums. It wastes the time of everyone who doesn't realize that a question has already been answered elsewhere. Putting all the answers in one place allows people to build on past answers rather than reinvent the wheel. I'm closing this thread - everyone please see the thread in Java in General (Intermediate) to follow up.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic