You have startsWith
method in String class.
yourString.startsWith("not")
0
solved How to check if a string is present at the beginning of another string in java [duplicate]
You have startsWith
method in String class.
yourString.startsWith("not")
0
solved How to check if a string is present at the beginning of another string in java [duplicate]