Created
November 5, 2016 21:45
-
-
Save bekwam/6c0ea2b834a89e06c2b1ca26b459ae5c to your computer and use it in GitHub Desktop.
Convert ArrayList of String to List of JavaFX Labels
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> list = new ArrayList<>(); | |
list.add( "a" ); | |
list.add( "b" ); | |
list.add( "c" ); | |
List<Label> labels = list | |
.stream() | |
.map( Label::new ) | |
.collect(Collectors.toList()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment