forum

Home / DeveloperSection / Forums / How to find string starts word in java?

How to find string starts word in java?

Anonymous User 1744 17-Oct-2014
Example: This is my string,

String sample = "random";
If the first character of the string contains 's' or 'p' or 'r' means i should remove the character,Otherwise i have to return the original string.

Is there any optimized way to do that like "regex" or "StringUtils" in apache common?

Updated on 17-Oct-2014
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By