Created Recipe-Ingredient-Unit-Convertor (Java) #2730 #2787
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Recipe-Ingredient-Unit-Convertor
Java, OOP, HashMap
(created)
fixes #2730
Description:
This pull request introduces a Recipe Ingredient Unit Converter tool implemented in Java. The tool is designed to convert various recipe ingredient quantities between different units, facilitating easy and accurate conversion for cooking enthusiasts. The code has been developed with a strong emphasis on OOP principles and utilises the HashMap data structure for efficient storage and retrieval of conversion data.
Enhancements and Features:
unitconvertor
map to include comprehensive conversion data for a wide range of ingredients and units commonly used in recipes.convert
method that handles conversion operations for specified ingredients, quantities, and units, ensuring accurate and reliable results.Usage Instructions:
Contributor's Note:
The code structure has been designed to be easily extensible, enabling the addition of more ingredients and units as required. Additionally, the tool maintains case sensitivity for inputs, ensuring accurate retrieval of conversion data.
Kindly review the code changes and provide any necessary feedback for further improvements and feature additions.