I am a highschool java programer (semi-experienced in c++) and I have the assignment of reading in a 3 digit number and outputting it as words. If I could just input each digit seperatly this program would be a breeze, but I must take in all 3 at once, AND do so through breezy swing windows built in, input. Can I just take input in as the int array? must I take it in as a string then parse it some how positon by position into the array, and if so how do I do so?
I am a highschool java programer (semi-experienced in c++) and I have the assignment
Share
You could accept the number as an int only
then
use the method we use when extracting digits
Hint
Eg: