Created
July 6, 2017 11:19
-
-
Save tomwhoiscontrary/c86b42944609a329c854cb6b360adcb9 to your computer and use it in GitHub Desktop.
I am officially too old for this shit
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
import java.util.Arrays; | |
import java.util.List; | |
public class Yolo<T> { | |
private void printStringLengths(List<String> strings) { | |
strings.forEach(s -> System.out.println(s.length())); | |
} | |
public static void main(String[] args) { | |
List<Integer> numbers = Arrays.asList(5, 17, 23); | |
new Yolo().printStringLengths(numbers); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
⊙.☉