Add: Java array rotation program (left and right rotation)#61
Conversation
|
🎉 Welcome to Hacktoberfest 2025, @Harsh-dubey-git! 🎃 Thank you for your first contribution to our DSA repository! Here's what happens next: 🔍 Automatic Checks
📋 Next Steps🎁 What You Get
💡 Tips for Success
Welcome to the community! 🚀 |
🤖 Automated PR Status🔍 Code Validation✅ Passed - File naming and structure look good! 🧪 Compilation Tests❌ Failed - Please fix compilation errors and try again. 📋 Overall Status
This comment was generated automatically. Checks will re-run when you push new commits. |
|
🎉 Welcome to Hacktoberfest 2025, @Harsh-dubey-git! 🎃 Thank you for your first contribution to our DSA repository! Here's what happens next: 🔍 Automatic Checks
📋 Next Steps🎯 Great job! Your code compiled successfully. Maintainers @admirerr and @kartikey2991 will review your PR soon. 🎁 What You Get
💡 Tips for Success
Welcome to the community! 🚀 |
🤖 Automated PR Status🔍 Code Validation✅ Passed - File naming and structure look good! 🧪 Compilation Tests✅ Passed - All code compiles successfully! 📋 Overall Status🎉 Ready for Review - Your PR has passed all automated checks! This comment was generated automatically. Checks will re-run when you push new commits. |
Description
Added a Java solution to rotate arrays either left or right based on user input.
File Added:
Java/arrays/RotateArray.java: Rotates a user-input array by a given number of positions in left or right direction.All code includes proper comments and instructions for compilation and running.
Type of Change
Testing
Tested locally using
javacandjava. Produces correct output for multiple sample inputs.Author
Harsh Dubey