Package com.jk.core.util
Class JKMoneyUtil
java.lang.Object
com.jk.core.util.JKMoneyUtil
This class provides utility methods for working with monetary amounts and
converting them to words.
- Version:
- 1.0
- Author:
- Dr. Jalal H. Kiswani
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetAmountAsString(int amount) This method converts an integer amount to its equivalent string representation in words.static voidThe main method to demonstrate the functionality of the class.
-
Constructor Details
-
JKMoneyUtil
public JKMoneyUtil()
-
-
Method Details
-
getAmountAsString
This method converts an integer amount to its equivalent string representation in words.- Parameters:
amount- Specifies the integer amount to be converted.- Returns:
- the string representation of the amount in words.
-
main
The main method to demonstrate the functionality of the class.- Parameters:
args- the command-line arguments.
-