"Cannot refer to a non-final variable inside an inner class defined in a different method" issue
Why it says that "Cannot refer to a non-final variable i inside an inner class defined in a different method"?