Friday, December 28, 2012
Encode and Decode Example in Java
This post demonstrates the how to encode and decode the String data.package com.ranga;import java.io.UnsupportedEncodingException;import java.net.URLDecoder;import java.net.URLEncoder;/** * This class is used to encode and decode the string data. * @author Ranga Reddy * @version 1.0 */public class EncodeAndDecodeExample { private static final String data = "Hello, I am Ranga Reddy. "; public static void main(String[] args) { String encodedData = getEncodedData(data); System.out.println("Encoded Data: " + encodedData); ...
Saturday, October 27, 2012
Spring MVC Hello World Example
In this post, we are going to see how to implement Spring MVC HelloWorld example.Step 1:The initial step is to create Dynamic Web Project in eclipse. To create a new Dynamic project in Eclipse IDE select File -> Dynamic Web Project.Step 2:After that New Dynamic Project Window will appear on the screen and you will enter the web application name in the Project name text box. Enter SpringHelloWorld in the Project Name and then click Next button.Step...
Friday, October 19, 2012
Eclipse IDE Tutorial
Please find the following site(s) it is very useful for beginners and experienced people.http://www.vogella.com/tutorials/Eclipse/article.htmlhttps://www.eclipse.org/http://www.tutorialspoint.com/eclip...
Friday, September 14, 2012
Difficult Questions And Intelligent Answers for Interview
Difficult Questions and Intelligent Answers for Interview: 1. How can you drop a raw egg onto a concrete floor without cracking it?Ans. Concrete floors are very hard to crack! (UPSC Topper)2. If it took eight men ten hours to build a wall, how long would it take four men to build it?Ans. No time at all it is already built. (UPSC 23 Rank Opted for IFS)3. If you had three apples and four oranges in one hand and four apples and three oranges in the other hand, what would you have?Ans. Very large hands..(Good one) (UPSC 11 Rank Opted for IPS)4....
Spliting a String without using any built in functions in Java
In this post, we are going to see how to split a string without using any built in functions.package com.ranga;import java.util.ArrayList;import java.util.List;/** * Write a Java program to split a string with out using any bulit methods like * split(), StringTokenizer class methods. * * @author Ranga Reddy * @version 1.0 */public class SplitString { public static void main(String[] args) { String str = "Welcome to JavabyRangaReddy blog"; String delimiter = " "; // here delimiter is space List<String> list = new ArrayList<String>();...
Thursday, September 13, 2012
JAVA IDE's
Best JAVA IDE :Integrated Development Environments (IDE) provide benefits to programmers that plain text editors cannot match. IDEs can parse source code as it is typed, giving it a syntactic understanding of the code. This allows advanced features like code generators, auto-completion, refactoring, and debuggers. Here are the best-of-breed Java IDEs.1) Eclipse : Price: FreeLicense: Open Source (CPL)Summary: Eclipse is a free IDE that has taken the Java industry by storm. Built on a plugin architecture, Eclipse is highly extensible and customizable....
Wednesday, August 1, 2012
AJAX Drop down Example with Database
The following are the steps for creating a dropdown list by using ajax with database.1. Create Dynamic Web Project : Open File -> New -> Other... -> Web -> Dynamic Web Project to create a dynamic Web project.Click Next .Enter the name of the Web project into the Project Name field.Proceed to one of the following steps:No server runtime installed.If you have not previously configured a server...