I have a class that takes a String
and looks at the first character and if the character is empty ("") it returns me the first letter.
public String textReturn(String x){
int v1 = 0,v2 = 1;
String a =" ";
while(true){
if( x.substring(v1,v2).equal(" ")){
a = x.substring(v1,v2);
break;
}else{
v1++;
v2++;
}
}
return a;
}
But this text comes from an EditText and if in it I give an enter account as if it were a character, I wanted to know how to skip the line break or if it is also a character type String a.equal (b /)