Last active
April 6, 2021 20:06
-
-
Save kauanmocelin/670b8e5f97a489e53d75194c721f57f1 to your computer and use it in GitHub Desktop.
[Juntar itens da lista numa string separados por vírgula] #java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List<String> nomes = new ArrayList<>(Arrays.asList("Kauan", "João", "Maria")); | |
String nomesSeparadosPorVirgula = StringUtils.join(nomes.toArray(), ","); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment