title: Android: Get text Editext == item array
body: <p>I have this code</p>
  
  <pre><code>if(edt_i.getText().toString() == Arrays.asList(coupon).contains("VIP537129")) {
                  Toast.makeText(MainActivity.this,"50% ", 
                          Toast.LENGTH_SHORT).show();
  </code></pre>
  
  <p>My Array</p>
  
  <pre><code>String[] coupon = {
          "MEM537128",
          "MEM537129",
          "VIP537128",
          "VIP537129"
      };
  </code></pre>
  
  <p>I want to check text in Edittext with Array, But didn't working. Please help me!</p>
  
  <p><strong>EDIT</strong></p>
  
  <pre><code>        if (Arrays.asList(coupon).contains(edt_i.getText().toString())) {
                  Toast.makeText(MainActivity.this,"10% ", 
                          Toast.LENGTH_SHORT).show();
              }else if(Arrays.asList(coupon).contains(edt_i.getText().toString())) {
                  Toast.makeText(MainActivity.this,"20% ", 
                          Toast.LENGTH_SHORT).show();
              }else if(Arrays.asList(coupon).contains(edt_i.getText().toString())) {
                  Toast.makeText(MainActivity.this," 30% ", 
                          Toast.LENGTH_SHORT).show();
              }else if(Arrays.asList(coupon).contains(edt_i.getText().toString())) {
                  Toast.makeText(MainActivity.this,"50% ", 
                          Toast.LENGTH_SHORT).show();
              }else {
                  Toast.makeText(MainActivity.this," False ", 
                          Toast.LENGTH_SHORT).show();
              }
  </code></pre>
  
  <p>But Toast only show 10%</p>