Operator '>' cannot be applied to 'java.lang.string'
<p>public class MainActivity extends AppCompatActivity {</p>

<pre><code>@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);


    final TextView label1=(TextView)findViewById(R.id.label1);
    final TextView label2=(TextView)findViewById(R.id.label2);
    final EditText introducir=(EditText)findViewById(R.id.introducir);
    Button probar=(Button)findViewById(R.id.probar);

    final Random dado=new Random();

    final String numTxt="";

    probar.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {

            int cont=0;
            cont=cont+1;
            int num=5/*dado.nextInt(100)+1*/;

            num=Integer.parseInt(numTxt);

        if (introducir.getText().toString()==numTxt){

            label1.setText("¡¡¡HAS ACERTADO!!!");
            label2.setText("");


        }
        if (introducir.getText().toString()&gt;numTxt){
            label1.setText("¿"+num+"? ¡Uy! El número que he pensado es mayor");
            label2.setText("");
        }


        }
    });
</code></pre>

<p>The error is on this line:</p>

<p>if (introducir.getText().toString()>numTxt)</p>

<p>I don't understand the error because I have made the cast, so can somebody help me? Please.
Thanks.</p>