title: Java Methods - Taking a method AS AN ARGUMENT
body: <p>I've come across some code that I can't share here but it <strong>declares</strong> a method <strong>WITHIN</strong> the paramter list of another method. I didnt even know that was possible. I dont really understand why its doing that. Can someone please explain to me some possible uses that you as a programmer would have for doing that? (Note: Since I can't show the code I dont expect an in-context explanation just generally)</p>
  <h3>Related:</h3>
  <blockquote>
  <p><a href="https://stackoverflow.com/questions/122407/whats-the-nearest-substitute-for-a-function-pointer-in-java">What's the nearest substitute for a function pointer in Java?</a></p>
  </blockquote>