Hello everyone,
I'm trying to learn how to program in
Java, but I'm stuck on an exercise.
I have to print all combinations of the
string 'XYZ' in lexicographic order (the order that words are found in dictionary). I'm able to do that in Java. The output is:
XXX
XXY
XXZ
XYX
XYY
XYZ
(etc...)
Here is my program:
However, if I want to remove, let's say, all combininations that includes 'X' and 'Y', what should I do?
Thank you in advance!
Anni-Frid