@Dennis , It will be easy to understand a pre-written example code , I already checked all documents on oracle and other forums even here on javaranch (copy paste that code shows a no. of errors(cannot resolve) on an
IDE like Myeclipse and netbeans), so please if your have done this earlier paste your example code... Thanks a lot