title: Can I store a method in a variable in Java 8?
body: <p>Is it possible to store a method into a variable? Something like</p>
  <pre><code> public void store() {
       SomeClass foo = &lt;getName() method&gt;;
       //...
       String value = foo.call();
   }
  
   private String getName() {
       return &quot;hello&quot;;
   }
  </code></pre>
  <p>I think this is possible with lambdas but I don't know how.</p>