https://github.com/coderbdk/unitconverter
UnitConverter is a Java library designed to simplify unit conversions.
https://github.com/coderbdk/unitconverter
android converter java library measurement unit-conversion unit-converter units
Last synced: about 2 months ago
JSON representation
UnitConverter is a Java library designed to simplify unit conversions.
- Host: GitHub
- URL: https://github.com/coderbdk/unitconverter
- Owner: CoderBDK
- Created: 2025-05-18T10:02:57.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-05-18T10:40:46.000Z (about 1 year ago)
- Last Synced: 2025-05-18T11:28:09.207Z (about 1 year ago)
- Topics: android, converter, java, library, measurement, unit-conversion, unit-converter, units
- Language: Java
- Homepage:
- Size: 99.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# UnitConverter
A simple and versatile Java library for converting between various units of measurement, including length, area. Easily extendable with new unit types.
## Features
* Length conversion (`LengthConverter`, `LengthUnit`)
* Area conversion (`AreaConverter`, `AreaUnit`)
* Temperature conversion (`TemperatureConverter`, `TemperatureUnit`)
* Volume conversion (`VolumeConverter`, `VolumeUnit`)
## Unit Conversions
```java
// Length conversion
double meters = 10;
double centimeters = LengthConverter.convertTo(meters, LengthUnit.METER, LengthUnit.CENTIMETER);
System.out.println(meters + " meters = " + centimeters + " centimeters");
// Area conversion
double squareMeters = 5;
double squareFeet = AreaConverter.convertTo(squareMeters, AreaUnit.SQUARE_METER, AreaUnit.SQUARE_FOOT);
System.out.println(squareMeters + " square meters = " + squareFeet + " square feet");
```
## Installion
### 1. Clone the repository
```bash
https://github.com/CoderBDK/UnitConverter.git
```
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.