Professional Documents
Culture Documents
STR Jaav
STR Jaav
println("enter the string:); DataInputStream ds=new DataInputStream(System.in); String S1=ds.readLine(); System.out.println("entered string is "+S1); StringBuffer Sb=new String Buffer(S1); System.out.println("reversed string:"+Sb.reverse ()); } }