2

Lmao, in Java you can put an inner class inside a method. I didn't know that.

Comments
  • 0
    Who writes local classes when you can keep them anonymous
  • 1
    @asgs Anonymous is the next step, yes. : )
  • 1
    Sigh.

    You can fuck a hornets nest, but the expert in urology says it might lead to more problems than "solutions".
  • 0
    It's sometimes useful if you have a wrapper class that's genuinely only useful in a single method - but that's rare if things are designed well in my experience. Most times I've used them I've found myself refactoring them later - either to generic utility classes, lambdas, or sometimes removing them altogether.
  • 1
    @AlmondSauce Ah, but this is pre-lambda times. Just reading a beginner's book. :)
Add Comment