Java Tutorials, Tips & Tricks

Java is a programming language originally developed by Sun Microsystems and released in 1995 as a core component of Sun Microsystems’ Java. It is platform independent.

Varargs in Java: Variable argument method in Java 5

Varargs in Java: Variable argument method in Java 5
I think I am late for writing about varargs. The feature of variable argument has been added in Java 5 since its launch. Still I will write something about varargs. varargs has been implemented in many languages such as C, C++ etc. These functionality enables to write methods/functions which takes variable length of arguments. For example the ...

20 very useful Java code snippets for Java Developers

20 very useful Java code snippets for Java Developers
Following are few very useful Java code snippets for Java developers. Few of them are written by me and few are taken from other code reference. Feel free to comment about the code and also add your code snippet.1. Converting Strings to int and int to StringString a = String.valueOf(2); //integer to numeric string int ...

Introduction to Apache Maven: A build framework & build automation tool

Introduction to Apache Maven: A build framework & build automation tool
For a quite while I had been using Ant build tool for building my Java projects. Since few days I have been switching to Apache Maven, an open source build framework that can be used to build almost all the projects in Java, .Net and other platforms. Maven was created by Sonatype's Jason van Zyl in ...

Reading/Parsing RSS feed using ROME

Reading/Parsing RSS feed using ROME
ROME is an open source tool to parse, generate and publish RSS and Atom feeds. Using Rome you can parse the available RSS and Atom feeds. Without bothering about format and version of RSS feed. The core library depends on the JDOM XML parser.Atom is on the similar lines of RSS is another kind of feed. ...

Parsing / Reading XML file in Java.

Parsing / Reading XML file in Java.
While working on a small requirement, I had to write a small piece of code that can parse an XML file in Java. Although there are number of libraries available in Java which does this task efficiently, I ended up in using normal Java XML parsing using org.w3c.dom parser.You may want to copy this code and ...

HTTP Proxy setting in Java. Setting up proxy.

HTTP Proxy setting in Java. Setting up proxy.
Working behind a proxy and writing network related code has always been boring for me. Just because everytime I had to connect to Internet and get some data, I had to use Proxy settings. Whatever I used had a proxy configuration.HTTP Proxy are configured mostly in corporate environments to manage internet usage. Hence if you are ...

Google Android ADT, SDK and Eclipse IDE integration on Linux

Google Android ADT, SDK and Eclipse IDE integration on Linux
This tutorial is going to be five minute long procedure which will show you how to add Google Android development tools (ADT) plugin into your Eclipse IDE.This tutorial uses Eclipse 3.3.2 europa that comes with fedora 9 and Android's latest SDK version 1.1.You can download latest version of Eclipse IDE from here. and Android ...

How to write a Web Crawler in Java. Part-1

How to write a Web Crawler in Java. Part-1
The task of the crawler is to keep on getting information from the internet into the database of the search engine. It literally crawls over the internet from page to page, link by link and downloads all the information to the database.A search engine is made up of basically four parts:Web Crawler Database Search Algorithm Search system that binds ...

PDF Generation in Java using iText JAR

PDF Generation in Java using iText JAR
Generating PDF files in today's enterprise applications is quite common. Doing this with Java is not an easy task as Java does not gives default api's to handle PDF files. No worries, iText jar is for you.iText is a free Java-PDF library that allows you to generate PDF files on the fly (dynamically). iText is an ...

Performance Monitoring using Glassbox

Performance Monitoring using Glassbox
Industry is recognizing the fact that Performance testing & engineering should be part of the project execution road map starting from Requirement gathering phase. At many times during project executions, performance engineering related activities are executed based on customer need or slow response time of application after development phase gets completed. Glassbox can be leveraged (by developers/testers/business users) ...
Page 7 of 9« First...56789