I have a string that contains some values .
for example : X1,X2,X3,X4
each of these values have predefined set
so the string could be 1128 , or 2323 and so on
I want If i have the string 1?23 to get all possible strings like 1123 ,1223, 1323, 1423
this should scale also if I have more than ? in the string
I don't understand that statement but it's clearly not an adequate answer. Unless your question relates to Java Programming in some concrete way you are posting in the wrong forum and almost certainly on the wrong site. Locking this thread.