Java Tutorials, Tips & Tricks
Sending Emails in Java using GMail ID
Thought of sharing following code with you all. It is a small code snippet that uses SMTP in Java to login into GMail and send email using ones GMail account. String host = “smtp.gmail.com”;...
Protect Java code from decompilation using Java Obfuscator
If you are writing Java classes and distributing them over the Internet, you should know that people can reverse-engineer, disassemble, or decompile your classes into Java source code. One of such decompiler is JAD....
Static Import in Java: New way to Import things in Java!
Static Import is a new feature added in Java 5 specification. Java 5 has been around the corner for some time now, still lot of people who are new in Java world doesn’t know...
Dynamic Class Loading using Java Reflection API
One of the reason why Java language has been so useful and used widely is the set of APIs that comes with the language (and 3rd party APIs like iText etc). Using these APIs...
Convert ArrayList to Arrays in Java
A lot of time I have to convert ArrayList to Arrays in my Java program. Although this is a simple task, many people don’t know how to do this and end up in iterating...
Double Brace Initialization in Java!
Few days back I came to know about a different way of initializing collections and objects in Java. Although this method of initialization has been there in Java since quite a few years now,...
RESTful Web Service tutorial: An Introduction for beginners
REST is a term coined by Roy Fielding in his Ph.D. dissertation to describe an architecture style of networked systems. REST is an acronym standing for Representational State Transfer. Representational State Transfer(REST), a software...
iText tutorial: Merge & Split PDF files using iText JAR
In previous article about Generating PDF files using iText JAR, Kiran Hegde had described a nice and basic way of generating PDF files in Java using iTest JAR. It is a great starter tutorial...
Tutorial: Create Autocomplete feature with Java – JSP / jQuery
Autocomplete is a common feature available in lot of web tools and services. You will find lots of implementation of autocomplete features. Let us see how can we implement a simple Autocomplete feature for...