Here you can find the source of parseStringArrayToSet(String[] value)
public static Set<String> parseStringArrayToSet(String[] value)
//package com.java2s; import java.util.Collections; import java.util.HashSet; import java.util.Set; public class Main { public static Set<String> parseStringArrayToSet(String[] value) { Set<String> set = new HashSet<String>(); Collections.addAll(set, value); return set; }// ww w .j av a 2 s . c om }