Question: In Java: How would you match together random person objects from an ArrayList to make a random group of Pair and add them to an
In Java: How would you match together random person objects from an ArrayList to make a random group of Pair and add them to an ArrayList in the sample code?
public class Person private String name; private String age public class Pair private Person personl; private Person person2 Pair (Person person1 Person person2) More Codex /*This is where the help is need*/ public class Match private ArrayList
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
