I have to implement RC4 encryption-decencryption for one of my client but unfortunately I dont have much idea about encryption-decryption. Could you guys help me to implement this and it would be great if you guys could share sample code.
Good news: You don't need to implement it, it's built into the Java class libraries. The Java API for encryption/decryption is called JCE, and the http://faq.javaranch.com/java/SecurityFaq has a number of relevant links about it, including ready-to-run code.
I had gone through the link but unfortunately didnot get any code for RC4 encryption-decryption. Could you please help to find out?
Take a look again. There are examples under the JCE section on encyption and decryption. Unfortunately, the example isn't one that uses RC4 -- as that is not very popular.
Anyway, follow the link, under the JCE section, and you'll see that RC4 is supported. Now, you have to go back to the examples, and modify the example to configure the RC4 algorithm -- which should be a one line change.
In addition to what Henry said, I would suggest that security is a topic where one really needs to understand what the code is doing. Just copying and pasting example code is likely to lead to insecure systems if one doesn't know what the code does in a fundamental way. So I'd start with learning about the JCE API (after which the change to RC4 will be trivial).