string
-
String
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
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
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
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 » -
String
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 » -
String
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 » -
String
Convert String to byte array ASCII encoding
This is an example of how to convert a String to byte array with ASCII encoding. The String class represents…
Read More » -
String
Convert String to byte array UTF encoding
public static byte[] stringToBytesUTFCustom(String str) { byte[] b = new byte[str.length() << 1]; for(int i = 0; i < str.length();…
Read More »