xhtml
 

Exercise 7: A Trick

Programs use numbers for computation, and text for communication. That means there is a need for conversion between the two. We have already seen some implicit examples of this, but what if there is a direct need to convert a number into text?

Complete the given program so that the string result is made to contain the text version of the number n. You can do this using only features of Java which you have already met.

Hint 1

Hint 2


Back