android - Why we need to place Semicolon manually after this.. View -


why need place semicolon manually? after this

anyview.setonclicklistener(new view.onclicklistener(){ @override public void onclick(){    //do here   }  }) /// here error if not place semicolon ... why eclips not placing ; here? } 

i want make concept clear....

you need semicolon complete anyview.setonclicklistener() statement. of time, eclipse not automatically complete code statements - cannot read mind code intended write.

what can confusing argument setonclicklistner() anonymous inner class instance created inline , syntax mixture of class definition , method calling.


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -