title: Conditional Statement in Android App Not working as Expected
body: <p>I'm currently trying to add a condition based on what the user has selected on the drop down. If the first item is selected, then the data entered on the textView will be multiplied by 34, else the second item will be multiplied by 18. So far I can test the first selection works as it should, but it's not picking up the second selection. Could anybody explain to me the proper way to tackle this conditional? this is what my code looks like. </p>
  
  <pre><code>public class CatalinaFerryTickets extends AppCompatActivity{
      String[] ferryRoutes = new String[]{"To Catalina Island", "To Long Beach"};
      private Button renderBtn;
      EditText handleData;
      TextView displayData;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
  //      RENDER SPINNER TO DEVICE
  
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_catalina_ferry_tickets);
          final Spinner spin=findViewById(R.id.mySpinner);
          final ArrayAdapter&lt;String&gt; myAdapter = new ArrayAdapter&lt;&gt;(this, android.R.layout.simple_spinner_dropdown_item, ferryRoutes);
          spin.setAdapter(myAdapter);
  
          renderBtn=findViewById(R.id.button);
          displayData=findViewById(R.id.textView);
          displayData.setMovementMethod(new ScrollingMovementMethod());
  
          renderBtn.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View v) {
                  handleData=findViewById(R.id.editInput);
                  int ticketAmount = Integer.parseInt(handleData.getText().toString());
                  int total;
  
  //              FAULTY CONDITIONAL STATEMENT
  
                  if (ferryRoutes[0] == "To Catalina Island"){
                      total = ticketAmount * 34;
                      displayData.setText(Integer.toString(total));
                  }
                  else{
                      total = ticketAmount * 18;
                      displayData.setText(Integer.toString(total));
                  }
  
              }
          });
  
      }
  
  }
  </code></pre>