Guest User

Untitled

a guest
Sep 7th, 2016
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. public void SomeMethod() {
  2. SomeForEachMethod(parameter -> System.out.println(parameter));
  3. }
  4.  
  5. public void SomeForEachMethod(Action someAction) {
  6. someList.stream().foreach(element -> someAction("EXAMPLE_PARAMETER"));
  7. }
Advertisement
Add Comment
Please, Sign In to add comment