core java
-
junit

JUnit Rules Example
The implementation of a Rule might look like this: import org.junit.rules.TestRule; import org.junit.runner.Description; import org.junit.runners.model.Statement; public class LoggingRule implements TestRule…
Read More » -
BasicDatasource

Create a simple BasicDataSource object
With this example we are going to demonstrate how to create a simple org.apache.commons.dbcp.BasicDataSource object, that is the basic implementation…
Read More » -
net

Delete File from FTP Server
This is an example of how to delete a File from an FTP Server. We are using the org.apache.commons.net.ftp.FTPClient Class that…
Read More » -
net

Get list of files from FTP Server
In this example we shall show you how to get a list of files from an FTP Server. We are using…
Read More » -
net

Establish connection with FTP Server
With this example we are going to demonstrate how to establish a connection with an FTP Server. We are using…
Read More » -
net

Download file from FTP Server
This is an example of how to download a File from an FTP Server, using the org.apache.commons.net.ftp.FTPClient Class, that encapsulates…
Read More » -
net

File Upload to FTP Server
In this example we shall show you how to upload a File to an FTP Server, using the org.apache.commons.net.ftp.FTPClient Class,…
Read More » -
lang3

Check if Days and Calendars match
With this example we are going to demonstrate how to check if Days and Calendars match. We are using the…
Read More » -
lang3

Capitalize words of a string
This is an example of how to capitalize the words of a String. We are using the org.apache.commons.lang3.text.WordUtils Class, that…
Read More » -
lang3

Generate random alphanumeric string
In this example we shall show you how to generate random alphanumeric String objects. We are using the org.apache.commons.lang3.RandomStringUtils class, that…
Read More »



