Posts Tagged ‘Java’

Inspect your code in Eclipse using Eclipse Scrapbook feature

Inspect your code in Eclipse using Eclipse Scrapbook feature
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 ...

Getting JVM heap size, used memory, total memory using Java Runtime

Getting JVM heap size, used memory, total memory using Java Runtime
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 ...

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 ...

Oracle buying Sun Microsystems: What will happen to MySQL!

Oracle buying Sun Microsystems: What will happen to MySQL!
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 ...

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 ...
Page 4 of 6« First...23456
Copyright © 2012 ViralPatel.net. All rights reserved.