If i'm sending the string with numberic to below code, its returning with % symbol.
Example :
st1a - st%a Why numeric replacing with % here ? but if stack overflow , its coming up with stack as string and overflow as another string.
Please advise.
String aName =StringUtils.lowerCase(Number.replaceAll("[^a-zA-Z]", "%"));
If you're just trying to split the string around a space, use
split:Or you can treat runs of consecutive whitespace characters as a single delimiter, since
splittakes a regex:To fully understand what
splitis doing, take a look at the documentation in the link above, so you can modify this to split your strings however you like. I can't tell what else you might be asking, so without clarification, this is the best I can do for you.