Results 1 to 2 of 2

Thread: set combination

  1. #1
    medoos is offline Member
    Join Date
    Sep 2012
    Posts
    2
    Rep Power
    0

    Default set combination

    Hello
    I have a string that contains some values .
    for example : X1,X2,X3,X4
    each of these values have predefined set
    X1={1,2,3}
    X2={1,2,3,4}
    X3={1,2}
    X4={1,3,8}

    so the string could be 1128 , or 2323 and so on
    If I have the string 1?23 I want to get all possible strings like 1123 ,1223, 1323, 1423
    this should scale also if I have more than ? in the string

    Thanks

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,242
    Rep Power
    19

    Default Re: set combination

    Just as you were told on the OTN, your question doesn't pertain to Java programming.
    https://forums.oracle.com/forums/thr...ageID=10571851

    If you have a Java question, ask it. Otherwise this thread too will be closed.

    Recommended reading: How to ask questions the smart way

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. 2 pair Combination of four values.
    By nandhinianand in forum New To Java
    Replies: 18
    Last Post: 02-27-2012, 08:32 AM
  2. 2 pair Combination of four values.
    By nandhinianand in forum NetBeans
    Replies: 3
    Last Post: 09-15-2011, 07:45 AM
  3. Replies: 9
    Last Post: 05-05-2010, 04:33 PM
  4. Key combination
    By dejos456 in forum New To Java
    Replies: 9
    Last Post: 11-30-2009, 07:11 AM
  5. COMBINATION TEXT..help me..urgent
    By conv_bay in forum New To Java
    Replies: 10
    Last Post: 04-27-2009, 11:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •