Skip to content

Instantly share code, notes, and snippets.

@tomwhoiscontrary
Created July 6, 2017 11:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomwhoiscontrary/c86b42944609a329c854cb6b360adcb9 to your computer and use it in GitHub Desktop.
Save tomwhoiscontrary/c86b42944609a329c854cb6b360adcb9 to your computer and use it in GitHub Desktop.
I am officially too old for this shit
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);
}
}
@scarytom
Copy link

scarytom commented Jul 6, 2017

⊙.☉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment