Java File and Directory operations made easy in JDK 7

14,886 views
By Abhijit Ghosh on Nov 7, 2012 11:32:05 AM

Here we'll see two examples - Copy operation & Traversing a file tree. If you have already worked using JDk 6 or earlier versions then you can see how easy it is to use JDK 7's nio package. And you need to write less code to implement the same.

Tags:

Configure Simple Logging Facade for Java (SLF4J) with log4j as underlying logging framework

60,037 views
By Abhijit Ghosh on Sep 26, 2012 1:30:13 PM

Simple Logging Facade for Java (SLF4J) is an abstraction of different logging frameworks (eg. log4j, java.util.logging, commons logging etc.). This tutorial describes how to configure SLF4J with log4j as underlying logging framework.

Tags:

Example to Generate Random Alpha Numeric Text

13,448 views
By Abhijit Ghosh on Sep 18, 2012 2:08:04 PM

This example shows how to generate random alpha numeric text which is not easy to guess.

Tags:

How to retain DOCTYPE declaration while saving DOM Document to an XML file

18,868 views
By Abhijit Ghosh on Sep 13, 2012 2:13:01 PM

If we save a DOM Document to an XML file using javax.xml.transform.Transformer, DOCTYPE declaration gets emitted by default. This example shows how we can retain PUBLIC and SYSTEM id of the DOCTYPE declaration for external DTD.

Tags:

Hello World Example of Simple Logging Facade for Java or SLF4J

187,151 views
By Abhijit Ghosh on Jul 15, 2012 10:02:15 PM

Simple Logging Facade for Java (SLF4J) is an abstraction of different logging frameworks (eg. log4j, java.util.logging, commons logging etc.). This gives the developer an opportunity to plug-in desired logging framework at deployment time without changing the code.

Tags:

About this 'Hello World' site

This site is mainly developed to share coding and technology learning experiences on java / j2ee based technologies.

Simple tutorials / codes have been shared to learn a new technology. Full source code is also available for download.