Java tutorial
//package com.java2s; /******************************************************************************* * Copyright (c) 2005, 2014 springside.github.io * * Licensed under the Apache License, Version 2.0 (the "License"); *******************************************************************************/ import java.util.ArrayList; import java.util.List; import java.util.Set; public class Main { public static <T> List<T> switchSet2List(Set<T> a) { List<T> list = new ArrayList<T>(); list.addAll(a); return list; } }