I’ve got an ArrayList which contains a series of integers (represnting indices in another ArrayList).
I need to extract each Unique pair eg…
ArrayList = 1,4,5,7
I need:
1:4
1:5
1:7
4:5
4:7
5:7
What’s the simplest method of achieving this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
convert list to
Setand back toListfor unique filtering