Urgently!! Need help convert number to words using jframe please help me

Recommended Answers

All 4 Replies

How will using a jframe help solve the problem?
The conversion method would not require any GUI.
Break the problem up into two parts:
the GUI
the conversion

the conversion

Use the static method of class String:
String valueOf(int i )/String valueOf(double d)/String valueOf(float f)
in java.lang to convert number to words

@tong1 Can you post some demo code that does that. I've never seen it done.
I guess it depends what you mean by "words". I assumed that the OP had a int value of 15 and wanted to get the String: "fifteen"

I am wrong. The method String valueOf(int i ).. I mensioned is to convert number to string stead of words.

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.