0
import java.io.*;
class Hki
{
public void main()throws IOException
{
BufferedReader br=new BufferedReader(new InputStreamReader (System.in));
System.out.println("enter the code");
String s=br.readLine();
int l=s.length();
int n=0;
String g="",y="";
for(int i=l-1;i>=0;i--)
{
g=g+s.charAt(i);
}
for(int j=0;j<l;j++)
{
(int)charch=s.charAt(g);
ch=ch-48;
n=n*10+ch;
if((ch>=65&&ch<=90)||ch==32||(ch>=97&&ch<=122))
{
y=y+(char)ch;
}
}
System.out.println(y);
}
}
class Hki
{
public void main()throws IOException
{
BufferedReader br=new BufferedReader(new InputStreamReader (System.in));
System.out.println("enter the code");
String s=br.readLine();
int l=s.length();
int n=0;
String g="",y="";
for(int i=l-1;i>=0;i--)
{
g=g+s.charAt(i);
}
for(int j=0;j<l;j++)
{
(int)charch=s.charAt(g);
ch=ch-48;
n=n*10+ch;
if((ch>=65&&ch<=90)||ch==32||(ch>=97&&ch<=122))
{
y=y+(char)ch;
}
}
System.out.println(y);
}
}
abhishreya
Feb 08, '13
1 answers
0
@Abhishreya - There are a lot of syntactical errors in your code. Try to remove them on your own and then repost your code.
khanmansoor
Feb 08, '13
Log in to your account to answer this questions.