How to create Factory Pattern in Java

  • 03 November 2016
  • ADM

How to create a factory design pattern in Java using the example of creating a database table for multiple database engines.


How to delete directory in Java

  • 19 October 2016
  • ADM

How to delete directory in Java using File.delete() method. Recursive delete is applied if the directory is not empty.


Autoboxing and Unboxing in Java

  • 12 October 2016
  • ADM

In Java, autoboxing is the automatic conversion between the primitive types and their corresponding object wrapper classes. Unboxing is the other way around.


Luhn algorithm implementation in Java

  • 26 January 2017
  • ADM

Luhn algorithm implementation in Java with example for both calculate the check digit and validate the number.


How to create a table using JDBC Statement

  • 24 March 2016
  • ADM

How to create a new table from Java using JDBC Statement in simple steps: connect, get the statement, execute and close.


How to create thread pool in Java

  • 05 April 2016
  • ADM

How to create a simple thread pool in Java using ExecutorService, Executors, ThreadPoolExecutor and RejectedExecutionHandler classes.