Hi I want to add an if statement that checks to see if a text in a textview (called TextView1) contains a ".". I know I can check to see if the text equals ".". But I dont know how to check if the text contains a ".". Can anyone help me with this? Thanks
I dont know what to do to TextArea1 to check if it contains a decimal point
if (TextArea1 ){
//Do Something
}
if(TextArea1.getText().toString().contains("."))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With