Hacker News new | past | comments | ask | show | jobs | submit login

Please read the article. I was referring to the method in the Java example. You cannot access `add1` from main since main is static

Ah yes, I replied too soon :)

Still, it's just a Java quirk that's irrelevant to the article.

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact