I am in the process of making an app that outputs a number between 1 and 9000 that the user selects this number is then stored as a variable that the user can call on later.
public void onClick(View v) {
// TODO Auto-generated method stub
String number = urNum.getText().toString();
if (number >= " " && <= 9000) {
numOut.setText("Your number is set to: " + number);
}
}
This code: (number >= " " && <= 9000)
has errors in it stating that: The operator >= is undefined for the argument type(s) String, int
-How do I go about fixing these errors?
Help on this matter would be wonderful!