class Dem
{
public static void main(String[] args)
{
String s="absjaogndlo".substring(1,7);
System.out.println(s);
char[] ch=s.toCharArray();
StringBuilder sb=new StringBuilder();
for(int i=ch.length-1;i>=0;i--)
{
sb.append(ch[i]);
}
System.out.println(sb);
}
}
|
|