Skip to main content
Browse topics

Array and String

String Programs

String comparison, concatenation, substring, reverse and character handling.

string programsCheck Case of a Character Example in JavaA string is traditionally a sequence of characters, either as a literal constant or as some kind of variable. A Java example with source code and sample output.string programsString Reverse Example in JavaA string is traditionally a sequence of characters, either as a literal constant or as some kind of variable. A Java example with source code and sample output.string programsTrim a String Example in JavaA string is traditionally a sequence of characters, either as a literal constant or as some kind of variable. A Java example with source code and sample output.string programsRepetitions in String Example in JavaRepetitions in String in Java: a complete example program with source code and sample output, explained step by step.string programsFirst Repeated Character Example in JavaFirst Repeated Character explained in Java, with a complete example program, its sample output, and a clear code walkthrough.string programsString Buffer Example in JavaStringBuffer class is a mutable class unlike the String class which is immutable. A Java example with source code and sample output.string programsString Builder Example in JavaTo avoid unnecessary memory usage, StringBuilder class is used. A Java example with source code and sample output.string programsString Comparison Example in JavaA string is traditionally a sequence of characters, either as a literal constant or as some kind of variable. A Java example with source code and sample output.string programsConvert a String to Array Example in JavaA string is traditionally a sequence of characters, either as a literal constant or as some kind of variable. A Java example with source code and sample output.string programsEquals and Equalsignorecase Example in JavaOne of the String comparison methods is '.equals' method. A Java example with source code and sample output.string programsConvert String to Arraylist Example in JavaA string is traditionally a sequence of characters, either as a literal constant or as some kind of variable. A Java example with source code and sample output.string programsConvert String to Lowercase Example in JavaA string is traditionally a sequence of characters, either as a literal constant or as some kind of variable. A Java example with source code and sample output.string programsString to Characterarray Example in JavaA string is traditionally a sequence of characters, either as a literal constant or as some kind of variable. A Java example with source code and sample output.string programsConvert to Uppercase Example in JavaA string is traditionally a sequence of characters, either as a literal constant or as some kind of variable. A Java example with source code and sample output.string programsFind the Character at a Particular Index Example in JavaThis method charAt() returns character at a particular index in the string. A Java example with source code and sample output.string programsFind Index of a Particular Character Example in JavaThis method indexOf() is an inbuilt method of strings which is used to find the index of a particular character or string.string programsFind Index of a Particular String Example in JavaThis method indexOf() is an inbuilt method of strings which is used to find the index of a particular character or string.string programsReplace Character in a String Example in JavaReplace Character in a String explained in Java, with a complete example program, its sample output, and a clear code walkthrough.string programsString Concatenation Example in JavaA string is traditionally a sequence of characters, either as a literal constant or as some kind of variable. A Java example with source code and sample output.string programsString Length Example in JavaA string is traditionally a sequence of characters, either as a literal constant or as some kind of variable. A Java example with source code and sample output.string programsCapitalize the Starting Letter of Each Word in a Sentence Example...A string can be converted to uppercase using .toUpperCase() method. A Java example with source code and sample output.string programsConvert Character Array to String Example in JavaConvert Character Array to String explained in Java, with a complete example program, its sample output, and a clear code walkthrough.string programsCheck Input Strings Are Anagram or Not Example in JavaA string is traditionally a sequence of characters, either as a literal constant or as some kind of variable. A Java example with source code and sample output.stringsString Equals vs == Operator Example in JavaUnderstand the difference between == and equals() for String comparison in Java, with examples showing reference equality vs content equality and sample output.

Related topics

Search tutorials