Skip to main content

One doc tagged with "string in dsa"

View All Tags

String Manipulation

In programming, a string is a sequence of characters. In Java, strings are represented by the String class, which provides various methods for string manipulation, traversal, and searching. Strings in Java are immutable, meaning their values cannot be changed once assigned. You can perform various operations on strings, such as concatenation, conversion to uppercase or lowercase, and substring extraction.