0

I search but cannot find on the web.

Is there a function that can represent any integer into its String litteral representation ?

Example :

Integer i1 = new Integer(4);
Integer i2 = new Integer(30);
i1.callSomeFunction();
i2.callSomeFunction();

Output :
"Four"
"Thirty"

If you know another function which isn't in the Integer class, it's fine too.

user2336315
  • 15,697
  • 10
  • 46
  • 64

1 Answers1

1

There is no standard method to do this but take a look at this. There is an example for a number to words in the English language converter.

Lukas Eichler
  • 5,689
  • 1
  • 24
  • 43