I have the following riddle:
How do I solve this in Java, using while loops? I had an idea on how to do it with for-loops, but it doesn't work using for-loops
So far, all I have is the following, which seems to be going through all possible combinations, but is incredibly slow, so I suspect...