Java: How to convert String[] to List or Set [duplicate] Java: How to convert String[] to List or Set [duplicate] arrays arrays