?
Solved

Generating all possible string combinations

Posted on 2003-02-19
2
Medium Priority
?
654 Views
Last Modified: 2006-11-17
Hi,

I wish to write a program that generates all possible combinations of strings of length five consisting of the numbers 0-9 and all upper and lower case letters/

Currently I'm using five nested for loops to do this, however this is VERY slow.

Can anyone suggest any better solutions?

Thanks in advance.
0
Comment
Question by:Duggary
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 7984089
You could really do with a permutations and combinations library to produce your 6471002 combinations. If i've time, i'll look for one.
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 100 total points
ID: 7984328
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Suggested Courses

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question