If I have two strings with letters in them, how do I get all the possible combinations of the characters within them?
For example if I have i string "abc" and another "def" how do I get all the combinations like:
ad ae af
bd be bf ...etc.
the first letter of the combo will always be from the first string, and the second letter from the second string.
I want it to be able to work with multiple strings. It is for text prediction. Each string will represent letters on a mobile phone keypad.
public void getCombos(){
String s1 = "abc"
String s2 = "def"
}