The java IDEs (eclipse, IRAD etc) contribute a scrapbook facility that can be used to try and evaluate Java expressions (such as code snippets). Java scrapbook errors are shown in the editor. Snippets are edited and evaluated in the Scrapbook page editor. In the editor you can select a code snippet, evaluate it, and display the result as a string in console.Creating a Java Scrapbook ...
Reading runtime information about Java is useful sometime when your application is struggling in getting resources. System Memory is one of the main resource that an application developer has to consider while managing the application.Hence sometimes it is beneficial to see what amount of memory is your application using and what is the free memory ...
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 ...
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 ...
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 ...
The final words are out. Sun Microsystems have accepted the $7.4 billion offer by Oracle corporation. Oracle Corporation's CEO Larry Ellison announced today the official word and so does the SUN's website
saying. Oracle agreed to pay about $7.4 billion, including cash and debt. The per-share price is $9.50, or about 42% higher than Sun’s ...
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. ...
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 ...
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 ...
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 ...