I have two TextViews that displays numbers from 1-6, I need to make a if statement thats like this:
if (x < y)
do this
else
do ths
But it says that I cant use < and > for TextViews so I guess I have to make them into “int”.
How do I do that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use
hashCode()method.You should have to use
Integer.parseInt()method to parse the number.