---
title: "Discussion on \"Reverse A String - 5 Methods\" | Hashnode"
description: "Discussion on \"Reverse A String - 5 Methods\". Method 1 - String Builder / String Buffer\n\n// Using String builder and String buffer\n\npublic class Method1 {\n    public static void main(String[] args) {\n\n        // pass the string to reverse\n        StringBuilder sb = new StringBuilder(\"Amritanshu\"..."
url: "https://hashnode.com/posts/reverse-a-string-5-methods/60bedb4efffc4c13b9cda1d6"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Reverse A String - 5 Methods](https://newgendeveloper.hashnode.dev/reverse-a-string-5-methods?utm_source=hashnode&utm_medium=feed)

Method 1 - String Builder / String Buffer // Using String builder and String buffer public class Method1 { public static void main(String\[\] args) { // pass the string to reverse StringBuilder sb = new StringBuilder("Amritanshu"...

Jun 8, 2021 · 2 min read · newgendeveloper.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#java](https://hashnode.com/tag/java)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#webdev](https://hashnode.com/tag/webdev)
-   [#developer](https://hashnode.com/tag/developer)

## Written by

[New Gen Developer](https://hashnode.com/@newgendeveloper)

@newgendeveloper · INDIA

  
[View profile](https://hashnode.com/@newgendeveloper)

Developer | Instructor | Motivator | Youtuber | Blogger

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
