-
logging

Conditional logging
This is an example of how to use Conditional logging. Using conditional logging in a Class means that we check…
Read More » -
logging

Log an exception
With this example we are going to demonstrate how to log an exception. In order to do so, we will…
Read More » -
logging

Use of logger console handler
In this example we shall show you how to use a logger’s ConsoleHandler. The ConsoleHandler is a handler that takes…
Read More » -
logging

Create a sequence of log files
This is an example of how to create a sequence of log files. Creating a sequence of log files implies…
Read More » -
logging

Set Formatter for Logger handler
With this example we are going to demonstrate how to set a Formatter for a Logger Handler. The Formatter is…
Read More » -
logging

Log method call
In this example we shall show you how to log a method call. We have implemented the LogMethodCall Class, with…
Read More » -
Collections

Swap List elements example
This is an example of how to swap a List’s elements . We are using the swap(List list, int i,…
Read More » -
Collections

Reverse order of List example
With this example we are going to demonstrate how to reverse the order of a List. This is provided by…
Read More » -
Collections

Replace all elements of List example
In this example we shall show you how to replace all elements of a List. We will use the fill(List…
Read More » -
Collections

Get unmodifiable Collection
This is an example of how to get an unmodifiable Collection. The same API applies to any type of Collection…
Read More »
