log4j.properties basic examples
log4j.properties basic examples. Output to the console and to the file.
How to create Null Object Pattern in Java
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
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
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
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
How to get current date and time in a specific format using Date, Calendar and SimpleDateFormat class.
Search
Other Posts
Follow Us On