I've just started doing some java, and I'm not really sure how to approach this task.
Write a program that receives a number (1-4 digits) from the user, then prints the number as text.
For example:
Input: 1234
output: one thousand two hundred and thirty-four.
Lecturer recommended using arrays, because that makes the code a lot simpler. Can someone point me in the right direction.
I know how to do the first part, using the scanner to receive the number. I'm just not sure what's the simplest way to "translate" it into text without using a hundred lines of code.
Thanks in advance.