Configuration

1
Console Output
>

String Transformation

Input String:
Hello World!
Search String
Hello
Method
startsWith()
Result
true

Method Description

startsWith(): Checks if a string starts with the specified characters

endsWith(): Checks if a string ends with the specified characters

Both methods return true or false based on the match.