Java

Java is a set of computer software and specifications developed by Sun Microsystems, which was later acquired by the Oracle Corporation, that provides a system for developing application software and deploying it in a cross-platform computing environment. Java is used in a wide variety of computing platforms from embedded devices and mobile phones to enterprise servers and supercomputers.

123

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