This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
How do I pass the value of i to the enable function?
In my case it works fine... Please suggest whether any other approach can be possible
Paulina Tanner, In the future, please start a new thread with your question. Asking a new question in someone else's thread is called hijacking and is a rude thing to do to the original poster. If you think your question is similar or related to another, add a link to that thread in your own.