Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

"What am I missing?"

What a noob!

  for (int i = 0; i < args.length; i++) {
If args.length is zero, the body of the loop won't run, since 0 < 0 is false. Duh.


Parent didn't need the downmods - it's the same poster replying to himself with "what a noob". I was about to post this same answer till I saw this at the bottom of the replies.


"Parent didn't need the downmods"

It's okay. I continue to be baffled and amazed at what gets voted up and what gets voted down, usually it balances out, so if something gets unexpectedly voted down, something else will get unexpectedly voted up.




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

Search: