Hi guys i am new here
i want to help about:
how to convert digit(number) into word
for example:
Enter a number:123
Output:one hundred twenty-three
sach_ak47
-2
Newbie Poster
Recommended Answers
Jump to Postwhich won't provide a correct solution in almost any situation :)
You'll need a lot more logic than that, but it could be used as a starting point.Instead of an array though you should really consider using an enum.
Jump to PostThis is going to be harder than you think due to the fact that numbers are represented differently depending on the position in the number the specific digit is in. For example, if a 5 is in the one's slot, it is represented as "five", whereas in the ten's spot …
Jump to PostHow do I convert the Integer to String by:
1. Asking the user to input the number (Eg: 704 = Seven Hundred and Four)2. Display the output in JTextArea.
Thanks for your support.
Start a new thread. This is a 3 year old thread.
Jump to Post@naveen p prakas
1) You just replied to old thread
2) You did not use code tags
3) You recommend to use old deprecated APIwhat can I say BAD, BAD, BAD for all 3
Thread closed before another time traveller descent on us.
Jump to Postdavidlad: what did you think peter_budo meant by the above post? this thread is five years old. just because some people seem to need to revive it now and then, doesn't mean it's the right thing to do.
the chances of the OP still looking for a solution for this …
All 20 Replies
peter_budo
2,532
Code tags enforcer
Team Colleague
Featured Poster
Nahiyan
commented:
It didn't solve the problem
+0
Salem
commented:
Useful hints
+17
jwenting
1,889
duckman
Team Colleague
TylerSBreton
13
Junior Poster in Training
c_shaft05
0
Junior Poster in Training
aniseed
38
Posting Whiz
c_shaft05
0
Junior Poster in Training
jimmylee
0
Newbie Poster
javaAddict
900
Nearly a Senior Poster
Team Colleague
Featured Poster
Salem
commented:
Now it's 5 years old, but the bottom feeders are still here
+17
toorkish
-4
Newbie Poster
theshadow27
0
Newbie Poster
ss999
0
Newbie Poster
baby_giantshead
0
Newbie Poster
javaAddict
900
Nearly a Senior Poster
Team Colleague
Featured Poster
Abayakaran
0
Newbie Poster
aime_claire
0
Newbie Poster
WargRider
10
Junior Poster
naveen p prakas
0
Newbie Poster
peter_budo
2,532
Code tags enforcer
Team Colleague
Featured Poster
davidlad
0
Newbie Poster
stultuske
1,116
Posting Maven
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.