Rinke: Your "ctr" seems to be an *Integer* object and you are using it as an "int". So simply say: ctr.intValue() + 1 and you should be ok.
Geeta "[EMAIL PROTECTED]" wrote: > Then why do i get this error? > > operator + cannot be applied to java.lang.Integer, int [javac] > out.print( ctr + 1 ); > Rinke --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]