• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

incrementing characters

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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???
 
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic