This is a command line Java application intended to demonstrate basic algorithms for converting integer numbers to English word equivalents.
You can clone this repository in order to prepare to build and run it. No pre-built application is available at this time.
Java 8 Runtime Environment is require to run this application. See more information here
Operating System runtime permissions may also be required to be changed. This can be done in the console in the parent directory where the project was cloned.
chmod -R +rwx ./nToW
This application can be built using Gradle. See here for more information.
To build the entire project, you should run the following in the root of the checkout.
./gradlew build
To test the project manually, you can use the gradle test command. The test command is run automatically as part of the build command, so this is not necessary if not making changes.
./gradlew test
To run the application, you can use the gradle run command.
./gradlew run
Once the application is running it will prompt the user for input. There are four different commands available:
Command | Description |
---|---|
--q | Quit the application |
--h | View the help text |
--n | Convert an integer to English word equivalent |
--v | Convert an integer to English word equivalent using commas and hyphens where appropriate |
Example inputs:
--n 435
--v 92378692378
The application will only handle numbers between -2^63 and 2^63 exclusively.