title: SetText is not working for TextView. In my code textValue.setText(Integer.toString(newValue)); is giving error as error: <identifier> expected
body: <pre><code>package com.example.menewapp;
  
  import android.os.Bundle;
  
  import com.google.android.material.snackbar.Snackbar;
  
  import androidx.appcompat.app.AppCompatActivity;
  
  import android.view.View;
  
  import androidx.navigation.NavController;
  import androidx.navigation.Navigation;
  import androidx.navigation.ui.AppBarConfiguration;
  import androidx.navigation.ui.NavigationUI;
  
  import com.example.menewapp.databinding.ActivityMainBinding;
  
  import android.view.Menu;
  import android.view.MenuItem;
  import android.widget.TextView;
  
  public class MainActivity extends AppCompatActivity {
  
      private AppBarConfiguration appBarConfiguration;
      private ActivityMainBinding binding;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
  
          binding = ActivityMainBinding.inflate(getLayoutInflater());
          setContentView(binding.getRoot());
  
          setSupportActionBar(binding.toolbar);
  
          NavController navController = Navigation.findNavController(this, R.id.nav_host_fragment_content_main);
          appBarConfiguration = new AppBarConfiguration.Builder(navController.getGraph()).build();
          NavigationUI.setupActionBarWithNavController(this, navController, appBarConfiguration);
  
          binding.fab.setOnClickListener(new View.OnClickListener() {
              TextView textValue = findViewById(R.id.text_value);
              String stringvalue = textValue.getText().toString();
              int old = Integer.parseInt(stringvalue);
              int newValue = MyNewWorker.doubleTheValue(old);
              textValue.setText(Integer.toString(newValue));
  
              @Override
              public void onClick(View view) {
                  Snackbar.make(view, &quot;old &quot; + old + &quot;is changed to &quot; + newValue, Snackbar.LENGTH_LONG)
                          .setAction(&quot;Action&quot;, null).show();
              }
          });
      }
  
  
       
  </code></pre>
  <p>SetText is not working for TextView. In my code textValue.setText(Integer.toString(newValue)); is giving error as error:  expected. Please help me. textValue.getText is working but textValue.setText is not. i am new to android application development and not getting clue on how to solve this</p>