I
edittext.getText (). toString ()
Get edittext (multi-line) text. Now want to know where a character is not the Enter key,
I use \ r \ n can not match, will be how to achieve? Is not required to match with the ascii value? Thank you!
Reply:
Should be \ n bar
Reply:
No, with
if (input_current == "\ n") {} Not return true
Reply:
Newline and carriage return there in the Ascii code corresponding values were 10 and 13, declare two char variables, comparison with the value taken out.
No comments:
Post a Comment