Many developers find it hard for understanding the conversion of plain string to the Date object with the desired format. This is a very basic requirement in any Java application. This tutorial provides few basic formats examples using the SimpleDateFormat class. Also there is plenty of formats available and supported by JDK, you can try …
Java
How to Protect PDF with Password using iText in Java?
In my previous article I have explained about how to create PDF document using iText with simple example. This tutorial explains how to add a password protection for your PDF document. iText doesn’t provide the password feature in its own API, however it internally uses another third part implementation and implements the password protection. iText internally …
How to Create PDF using iText in Java?
Generating PDF report is the very general requirement in most of the Java projects. iText is the most popular PDF API used by the Java developers for generating the PDF report. It is very simple and easy to get started writing simple PDF files. If you are familiar with iText API, it provides more advanced …
How To Convert Properties File Into XML File Using Java?
In my previous tutorials I have explained about how to use DOM Parser and SAX Parser. This tutorial explain with very simple utility method available in the Java package used for converting your existing properties file to a XML file. Sometimes this may be the requirement for Java developers, instead of manually converting properties file …
A Simple Factory For Collections Using Varargs
Suppose you want to create a list object in Java and populate it with some default elements, how would you go about coding it? One will pursue one of the following approaches: (If you have any other approach feel free to share them via the comments and we will update the post accordingly). In the …
Create CSS Classes For Buttons
This CSS tutorial explains how to create custom CSS classes for buttons with great look and feel. If you are into Web development, very probably you must have ran into some CSS framework like Blueprint , Bootstrap , Green and Pure are some examples. They all have their peculiarities and offer great classes for creating responsive sites and implementation of UI elements, including buttons …
Creating JSON Data Using The Java JSON API (JSR 353)
JSON has been around for quite sometime now and lot of languages are offering out of the box support for parsing and creating JSON data. The JDK didn’t have support for parsing and creating JSON data out of the box. One had to make use of libraries for parsing and creating JSON data like Google …
Introduction to JavaScript
This article aims to give an introduction to simple and not extremely formal scripting language which have been established as one of the foundations of the entire web application. You’ve probably heard this name, but have no idea what it is or you may have used it but have no basic idea about this. Then this …





