Skip to content

Conversation

@ABHIRANJAN-KUMAR1
Copy link

πŸ“˜ Implement Reverse String Function in Java (User Input + Example)

βœ” Overview
This Pull Request adds a new Java program named ReverseString.java inside the Java directory.
The program takes user input, reverses the string, and prints the reversed result.
It includes clean comments, example usage, and follows beginner-friendly coding style.

πŸ”§ Features

  • Takes input from the user
  • Reverses a string using StringBuilder
  • Provides example inside comments
  • Clean, readable, and well-structured code
  • Good addition for beginners learning Java
  • Hacktoberfest-friendly contribution

πŸ“‚ File Added
Java/ReverseString.java

β–Ά Example Output
Enter a string to reverse: Sudipta
Reversed String: atpiduS

πŸŽ‰ Why This Is Helpful

  • Adds a useful basic Java program to the repository
  • Demonstrates string manipulation clearly
  • Helps new contributors
  • Supports Hacktoberfest participation

πŸ”— Issue
Closes #2860

πŸš€ Ready for Review
Please review and merge this PR. Thank you! πŸ™Œ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reverse a string

1 participant