Master java skills

How to create a list from set in java

package com.jts;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

public class ListFromSetExample {
	
	public static void main(String[] args) {
		
		Set<Integer> set = new HashSet<>();
		set.add(101);
		set.add(102);
		set.add(103);
		set.add(104);
		
		System.out.println("Set : " + set);
		
		List<Integer> list = new ArrayList<>(set);
		
		System.out.println("List : " + list);
	}
}
Output:
Set : [101, 102, 103, 104]
List : [101, 102, 103, 104]