class StringReverse
{
public static void main(String[]args)
{
String myactualStrig="rannaresh golghar";
StringBuilder sb =new StringBuilder();
sb.append(myactualStrig);
sb=sb.reverse();
System.out.println(sb);
}
}
{
public static void main(String[]args)
{
String myactualStrig="rannaresh golghar";
StringBuilder sb =new StringBuilder();
sb.append(myactualStrig);
sb=sb.reverse();
System.out.println(sb);
}
}
0 comments:
Post a Comment