K random combinations of N elements in List in Java

Given a List of N Strings, generate and print all possible combinations of RĀ elements in array and return X random combinations from the result. Following is the code for implementing it:

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.