You are viewing a single comment's thread. Return to all comments →
your code is giving me an error for the statement "static in count=0;"
error is : illegel start of expression
why it is giving such error???
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).