Activity selection

my code is showing error without any messages after compiling

@jais_rashi Hey you have not initialized the it2 iterator, also you are incrementing count, for every number (it is out of if statement).
If this resolves your doubt mark it resolved.