If he posted his code as text instead of a screenshot with a smorgasbord of colors, it would have been a lot easier to detect and someone would have delivered the correct answer immediately. That is why @Erel always recommends putting your code as text not a screenshot.
If he posted his code as text instead of a screenshot with a smorgasbord of colors, it would have been a lot easier to detect and someone would have delivered the correct answer immediately.
One additional thing to add to your list:
7. Never use a screenshot to post code. Use text so members who help you can manipulate it. Errors are a lot more detectable in text.