namishkhanna / hacktoberfest2021

Make your first PR. A beginner friendly repository made specifically for open source beginners. Add any program under any language (it can be anything from a simple program to a complex data structure algorithm). Happy coding...
43 stars 131 forks source link

Create ReverseString.java #203

Closed sparsh308 closed 2 years ago

sparsh308 commented 2 years ago
  1. The idea is to traverse the length of the string
  2. Extract each character while traversing
  3. Add each character in front of the existing string

// java program to reverse a word