title: Passing parameter to anonymous class in Java
body: <p>i'm trying to write anonymous inner class </p>
  
  <pre><code>interface Face{
      void seeThis(String what);
  }
  
  
  class Eyes {
      public void show(Face f){}
  }
  
  public class Seen {
  
      public void test() {
          Eyes e = new Eyes();
          e.show(new Face() {
  
              @Override
              public void seeThis(String what){
                  System.out.print(what);
              }
          });
  
      public static void main(String[] args) {
          Seen s = new Seen();
          s.test();
      }
  }
  </code></pre>
  
  <p>How to call seeThis() and how to pass parameter to it?</p>