import java.util.*; /** * Create all possible word combinations from a given set of characters. * Note: using more than 6 characters creates too many options at this time. * The options are easily calculated, but may not fit in an output TextArea. * (6 characters creates 720 combinations; 7 characters creates 5,040 * combinations.) * * @version 1.0 * @author Developer's Daily (http://www.devdaily.com) */ public class ThreadedJumbleCalc extends Thread { int numChars; char[] chars; char[] currCharArray; int[] currIndex; /** * Set the array of possible characters for this calculation. * @param char[] an array of possible characters (defined by the user) */ public void setPossibleChars (char[] possibleChars) { numChars = possibleChars.length; chars = new char[numChars]; currCharArray = new char[numChars]; currIndex = new int[numChars]; for (int i=0; i