 |
concat(), replace(), and trim() Strings in Java
You can concatenate two strings using concat(), shown here. The replace( ) method replaces all occurrences of one character in the invoking string with another character. The trim( ) method is quite useful when you process user commands. For example, the
www.java-samples.com |
 |