log4j.properties basic examples

  • 09 February 2017
  • ADM

log4j.properties basic examples. Output to the console and to the file.


How to create Null Object Pattern in Java

  • 07 December 2016
  • ADM

How to create Null Object Pattern in Java. Simple example using object and null object class implementation.


How to create Abstract Factory Pattern in Java

  • 03 November 2016
  • ADM

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


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.


Split URL into components using regex

  • 23 May 2016
  • ADM

Split URL into components (protocol, domain, port and uri) using regex in Java. Simple and tested example.


How to get date and time in Java

  • 09 May 2016
  • ADM

How to get current date and time in a specific format using Date, Calendar and SimpleDateFormat class.