You are viewing a single comment's thread. Return to all comments →
its because of the typo error i guess
"static int count=0;" is right not "static in count=0;"
That and the compiler may require you to initialize the static variable count outside of the method (i.e., before it).