i have a method and i can't call it in Android Studio : I want to create a simple calculator in Android Studio, in my way I get an error on **calling a fuction** that i have already **declared**. Any Android Expert here that can help me?

Thanks

    
    public class CalculatorActivity extends AppCompatActivity {
    
        @Override
        protected void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.activity_calculator);
        }
    
        //Start my method
    
        public void calculator(View v) {
            Button btn0 = (Button) findViewById(R.id.btn0);
            Button btn1 = (Button) findViewById(R.id.btn1);
            Button btn2 = (Button) findViewById(R.id.btn2);
            Button btn3 = (Button) findViewById(R.id.btn3);
            Button btn4 = (Button) findViewById(R.id.btn4);
            Button btn5 = (Button) findViewById(R.id.btn5);
            Button btn6 = (Button) findViewById(R.id.btn6);
            Button btn7 = (Button) findViewById(R.id.btn7);
            
            TextView textViewResult = (TextView) findViewById(R.id.textView);
    
            if (btn0.isPressed() == true) {
    
                textViewResult.setText(textViewResult + "0");
            } else if (btn1.isPressed() == true) {
                textViewResult.setText(textViewResult + "1");
    
            }
    
        }
           //End my method

        //I want to call that fucntion, and i get an error
        calculator();
    
        
    }
