unexpected end of declaration for class variable - Android : I am facing weird error: unexpected end of declaration. And I am very sure that there is no typo. Please help.


    package test.anyname;
    import android.app.*;
    import android.os.*;

    public class MainActivity extends Activity {
	   boolean ty= true;
	   ty= false;       // Error occurred at this line
       @Override
       protected void onCreate(Bundle savedInstanceState){
           super.onCreate(savedInstanceState);
           setContentView(R.layout.main);
       }
    }