-
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 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
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 UTF encoding
public static byte[] stringToBytesUTFCustom(String str) { byte[] b = new byte[str.length() << 1]; for(int i = 0; i < str.length();…
Read More » -
lang
MethodHandle example
public class MethodAccessExampleWithArgs { private final int i; public MethodAccessExampleWithArgs(int i_) { i = i_; } private void bar(int j,…
Read More » -
math
Find floor value of a number
With this example we are going to demonstrate how to find the floor value of a number, using the floor(double…
Read More » -
math
Find ceiling value of a number
In this example we shall show you how to find the ceiling value of a number, using the Math Class.…
Read More » -
math
Java Absolute Value Example
In this post, we feature a comprehensive Java Absolute Value Example. With this example we are going to demonstrate how…
Read More » -
Authenticator
Access password protected URL with Authenticator
With this example we are going to demonstrate how to access a password protected URL using the Authenticator Class. The…
Read More » -
URL
Parse URL example
In this example we shall show you how to parse a URL. Class URL represents a Uniform Resource Locator, a…
Read More »