Modifying a String in java: substring(), Concat(), replace(), trim()
Java String Handling
How to modify a String in java? The Java String methods like substring(), Concat(), replace(), trim() are used to modify a string.
/* The String method used for modifying a String in java*/
1. substring()
2. Concat()
3. replace()
4. trim()