commons
-
Array reverse order
With this example we are going to demonstrate how to reverse the order of an array. We are using the…
Read More » -
Array of Objects to Array of primitives
This is an example of how to convert an array of Objects to an array of primitives. We are using the…
Read More » -
Check empty string
In this example we shall show you how to check if a String is empty. We are using the org.apache.commons.lang3.StringUtils class,…
Read More » -
Find elements in an array
With this example we are going to demonstrate how to find elements in an array. We are using the org.apache.commons.lang3.ArrayUtils…
Read More » -
Decode Base64
This is an example of how to decode Strings with the Base64 algorithm. We are using the org.apache.commons.codec.binary.Base64 class that provides…
Read More » -
Encode Base64
In this example we shall show you how to encode Strings with the Base64 algorithm. We are using the org.apache.commons.codec.binary.Base64 class…
Read More » -
Move Directory
With this example we are going to demonstrate how to move a Directory. We are using the org.apache.commons.io.FileUtils class that…
Read More » -
Get Disk Free Space
This is an example of how to get the Disk free space in Java. We are using the org.apache.commons.io.FileSystemUtils class that…
Read More » -
Get directory size
In this example we shall show you how to get the size of a directory. We are using the org.apache.commons.io.FileUtils class…
Read More » -
Create a copy of a file
With this example we are going to demonstrate how to create a copy of a file. We will make use…
Read More »