Nums is local to the init() method, it dissappears when init() ends. Or at least the reference to it does, the data is left for the garbage collector to come and get later.
You should declare it at the same scope as all your Buttons
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.