Your program has some unnecessary lines, but it still works with the input arguments 0, 1, 2, 3, 4, 5, 6, 7, 8, or 9. Any other arguments give the null character ('\u0000'), which doesn't print anything.
If you're not sure about the input argument, why not print out args[0] before you parse it?
Also, see if you can fnd the unnecessary lines in your code.
yeah Joyce, am trying to do the cattle drive assignments. And this one is 4(a).
And I want to do like.. If I 'll input the digital value 22, then my program will display it as character "twenty-two".
So Mike, i tried with 0,1,2....8,9. But It returns me only the same integer representation on my output screen. And also why it returns null for any value bigger than 9.
If you look up the forDigit() method in the doc, you'll see that it is doing its job returning the character representation of the integer m in the 10 based number system.
Originally posted by Mike Gershman: If you look up the forDigit() method in the doc, you'll see that it is doing its job returning the character representation of the integer m in the 10 based number system.
Can you help me to get the thing what I want? Can you please suggest me the method.