-
-
Notifications
You must be signed in to change notification settings - Fork 27.3k
Adding Currency Convertor example #3307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Adding Currency Convertor example #3307
Conversation
PR SummaryThis PR adds a Java example of a Currency Converter that uses the Strategy pattern. It demonstrates converting between currencies using fixed exchange rates and allows different conversion strategies to be easily swapped. The example uses Changes
autogenerated by presubmit.ai |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ LGTM!
Review Summary
Commits Considered (1)
- a38bb65: Adding Currency Convertor example
Files Processed (4)
- currency-convertor/currency-convertor/.gitignore (1 hunk)
- currency-convertor/currency-convertor/pom.xml (1 hunk)
- currency-convertor/currency-convertor/src/main/java/com/currencyconvertor.java (1 hunk)
- currency-convertor/currency-convertor/src/main/java/org/example/Main.java (1 hunk)
Actionable Comments (0)
Skipped Comments (0)
|
|
Hi there , |
|
This PR is stale because it has been open 60 days with no activity. |



Pull Request Template
What does this PR do?
This PR adds a new example implementation of the Currency Converter design pattern in Java.
The example demonstrates a basic currency conversion utility that converts between multiple currencies using fixed exchange rates.
It showcases the application of the Strategy pattern by allowing different conversion strategies to be swapped easily.
This helps learners understand how to decouple conversion logic and improve flexibility in financial applications.