Converts numbers to their English word equivalents. The supported range is -2,147,483,648 to 2,147,483,647.
- Maven 3.6.0+.
- JDK 8 or later.
- Latest version of Docker (if you plan to build and run through Docker).
- Run
mvn package
to build the jar file. This will also run the tests.
- Run
java -jar <name of jar file> <list of numbers delimited by spaces>
.- eg:
java -jar interview-1.0-SNAPSHOT.jar 43242 678
.
- eg:
- Run
docker build -t <image namespace>/<image tag> .
- eg:
docker build -t exercise/numbers-to-words .
- eg:
- Run
docker run <name of image from build step> <list of numbers delimited by spaces>
- eg:
docker run exercise/numbers-to-words 43242 678
- eg:
- Alternatively you can use what's already on Docker Hub.
- eg:
docker run gantderising/numbers-to-words 43242 678
- eg: