Skip to main content

String Programs

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

1
string programs

Check Case of a Character Example in Java

A 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.

2
string programs

String Reverse Example in Java

A 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.

3
string programs

Trim a String Example in Java

A 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.

4
string programs

Repetitions in String Example in Java

Repetitions in String in Java: a complete example program with source code and sample output, explained step by step.

5
string programs

First Repeated Character Example in Java

First Repeated Character explained in Java, with a complete example program, its sample output, and a clear code walkthrough.

6
string programs

String Buffer Example in Java

StringBuffer class is a mutable class unlike the String class which is immutable. A Java example with source code and sample output.

7
string programs

String Builder Example in Java

To avoid unnecessary memory usage, StringBuilder class is used. A Java example with source code and sample output.

8
string programs

String Comparison Example in Java

A 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.

9
string programs

Convert a String to Array Example in Java

A 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.

10
string programs

Equals and Equalsignorecase Example in Java

One of the String comparison methods is '.equals' method. A Java example with source code and sample output.

11
string programs

Convert String to Arraylist Example in Java

A 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.

12
string programs

Convert String to Lowercase Example in Java

A 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.

13
string programs

String to Characterarray Example in Java

A 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.

14
string programs

Convert to Uppercase Example in Java

A 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.

15
string programs

Find the Character at a Particular Index Example in Java

This method charAt() returns character at a particular index in the string. A Java example with source code and sample output.

16
string programs

Find Index of a Particular Character Example in Java

This method indexOf() is an inbuilt method of strings which is used to find the index of a particular character or string.

17
string programs

Find Index of a Particular String Example in Java

This method indexOf() is an inbuilt method of strings which is used to find the index of a particular character or string.

18
string programs

Replace Character in a String Example in Java

Replace Character in a String explained in Java, with a complete example program, its sample output, and a clear code walkthrough.

19
string programs

String Concatenation Example in Java

A 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.

20
string programs

String Length Example in Java

A 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.

21
string programs

Capitalize 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.

22
string programs

Convert Character Array to String Example in Java

Convert Character Array to String explained in Java, with a complete example program, its sample output, and a clear code walkthrough.

23
string programs

Check Input Strings Are Anagram or Not Example in Java

A 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.

24
strings

String Equals vs == Operator Example in Java

Understand 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