Browsed by
Month: November 2012

Convert Amount In Words

Convert Amount In Words

A simple problem is to convert the given number into words for receipt or other bills related usage. import java.util.*; public class AmountInWords { private static String amount; private static int num; private static String[] units = { “”, ” One”, ” Two”, ” Three”, ” Four”, ” Five”, ” Six”, ” Seven”, ” Eight”, ” Nine” }; private static String[] teen = { ” Ten”, ” Eleven”, ” Twelve”, ” Thirteen”, ” Fourteen”, ” Fifteen”, ” Sixteen”, ” Seventeen”,…

Read More Read More