import java.io.*;
import java.util.*;
public class codeconvert
{
public static void main(String args[])throws Exception
{
DataInput keyboard = new DataInputStream(System.in);
String temp;
char response;
String toConvert;
String converted;
System.out.println("Input the sentance you want converted.");
toConvert = keyboard.readLine();
converted = toConvert;
converted.replace("A" , "B");
converted.replace("a" , "b");
converted.replace("B" , "C");
converted.replace("b" , "c");
converted.replace("C" , "D");
converted.replace("c" , "d");
converted.replace("D" , "E");
converted.replace("d" , "e");
converted.replace("E" , "F");
converted.replace("e" , "f");
converted.replace("F" , "G");
converted.replace("f" , "g");
converted.replace("G" , "H");
converted.replace("g" , "h");
converted.replace("H" , "I");
converted.replace("h" , "i");
converted.replace("I" , "J");
converted.replace("i" , "j");
converted.replace("J" , "K");
converted.replace("j" , "k");
converted.replace("K" , "L");
converted.replace("k" , "l");
converted.replace("L" , "M");
converted.replace("l" , "m");
converted.replace("M" , "N");
converted.replace("m" , "n");
converted.replace("N" , "O");
converted.replace("n" , "o");
converted.replace("O" , "P");
converted.replace("o" , "p");
converted.replace("P" , "Q");
converted.replace("p" , "q");
converted.replace("Q" , "R");
converted.replace("q" , "r");
converted.replace("R" , "S");
converted.replace("r" , "s");
converted.replace("S" , "T");
converted.replace("s" , "t");
converted.replace("T" , "U");
converted.replace("t" , "u");
converted.replace("U" , "V");
converted.replace("u" , "v");
converted.replace("V" , "W");
converted.replace("v" , "w");
converted.replace("W" , "X");
converted.replace("w" , "x");
converted.replace("X" , "Y");
converted.replace("x" , "y");
converted.replace("Y" , "Z");
converted.replace("y" , "z");
converted.replace("Z" , "A");
converted.replace("z" , "a");
System.out.println("\n\nThe sentance: ");
System.out.println("\t\'" + toConvert + "\'");
System.out.println("converted is: ");
System.out.println("\t\'" + converted + "\'");
}
} |