public static String[] collapseNames(String[] master,String[] next){
  final LinkedHashSet<String> ret=new LinkedHashSet<>();
  ret.addAll(Arrays.asList(master));
  ret.addAll(Arrays.asList(next));
  return ret.toArray(new String[ret.size()]);
}

public static String [ ] collapseNames ( String [ ] master , String [ ] next ) { final LinkedHashSet < String > ret = new LinkedHashSet < > ( ) ; ret . addAll ( Arrays . asList ( master ) ) ; ret . addAll ( Arrays . asList ( next ) ) ; return ret . toArray ( new String [ ret . size ( ) ] ) ; }
collapse two arrays into one
