Core Java
-
Compare Strings
In this example we shall show you how to compare Strings. We are using the methods that the String class…
Read More » -
String replace method
With this example we are going to demonstrate how to use the replace method of String class. The String class…
Read More » -
String trim method
This is an example of how to use the trim method of String class. The String class represents character strings.…
Read More » -
Java Convert String toLowerCase
In this example, we shall show you how to convert a String toLowerCase in Java. The String class represents character…
Read More » -
Java Convert String toUpperCase
With this example, we are going to demonstrate how to convert a String toUpperCase in Java. The String class represents…
Read More » -
String split method
This is an example of how to split a String. The String class represents character strings. All string literals in…
Read More » -
String startsWith method
In this example we shall show you how to use the startsWith method of String class. The String class represents…
Read More » -
String endsWith method
With this example we are going to demonstrate how to use the endsWith method of String. The String class represents…
Read More » -
Search String with indexOf method
This is an example of how to search a String using the indexOf method of String class. The String class…
Read More » -
Convert String to char array
In this example we shall show you how to convert a String to char array. The String class represents character…
Read More »