Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.java8;
- public class AnonymousImpl{
- public static void main(String[] args) {
- // anonymous implementation
- IFilterText anonymousFilter = new IFilterText() {
- @Override
- public boolean filter(String text) {
- return text.equals("fooBar");
- }
- };
- System.out.println(anonymousFilter.filter("fooBar"));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement