Reverse string without using any temporary variable | Reversing a string using reverse ( ) ; Reverse str [ beign . . end ]
class GFG { public static void main ( String [ ] args ) { StringBuilder str = new StringBuilder ( " geeksforgeeks " ) ; str . reverse ( ) ; System . out . println ( str ) ; } }