Roman Numeral Converter is a lightweight Java library that provides simple and efficient conversion between Arabic (decimal) numbers and Roman numerals.
- Download the latest JAR from the GitHub Releases page (In Progress)
- Clone the repository and build the project locally
Add the JAR to your project's dependencies:
mvn install:install-file \
-Dfile=path/to/romannumeralconverter-1.0.0.jar \
-DgroupId=io.github.dronecodes \
-DartifactId=romannumeralconverter \
-Dversion=1.0.0 \
-Dpackaging=jar
- Create a
libs
folder in your project - Place the JAR in the
libs
folder - Add to your
build.gradle
:
dependencies {
implementation files('libs/romannumeralconverter-1.0.0.jar')
}
# Clone the repository
git clone https://github.com/DroneCodes/romannumeralconverter.git
# Navigate to the project directory
cd romannumeralconverter
# Build the project
mvn clean package
# The JAR will be in the target/ directory
// Convert a number to Roman numerals
String romanNumeral = RomanNumeralConverter.toRoman(1984);
System.out.println(romanNumeral); // Outputs: MCMLXXXIV
// Convert Roman numerals to a number
int arabicNumber = RomanNumeralConverter.toArabic("MCMLXXXIV");
System.out.println(arabicNumber); // Outputs: 1984
- Java 17 or higher
- Maven or Gradle (for dependency management)
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Open a Pull Request
Distributed under the MIT License.
Project Link: GitHub Repository