public class FinalReverseWithoutUsingStringMethod{ public static void main(String []args){ String str = "PAWAN"; StringBuilder str2 = new StringBuilder(); str2.append(str); str2=str2.reverse(); System.out.println(str2); } }
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more