Archive for July, 2012

import java.util.*;
import java.io.*;
class caesar
{
public static void main(String k[])
{
int c;
System.out.println(“ENTER PLAIN TXT :”);
Scanner sc=new Scanner(System.in);
String s=sc.nextLine();
s=s.toLowerCase();
for(int i=0;i<s.length();i++)
{
c=s.charAt(i);
c=c+3;
if(c>122)
{
c=c%122;
c=c+96;
}

System.out.println((char)c);
}

}
}

Advertisements