Ahmer Arman

Greenhorn
+ Follow
since Nov 23, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ahmer Arman

Hi Java Friends,
If I declare any class static then what their methods will behave. do they behave like static methods or else.

------------------
Ahmer Arman
22 years ago
Hi,
You can use the method
toString(char[]);

------------------
Ahmer Arman
22 years ago
Another logic to do this.
Change your double value to String value, separeate the integer part from string, then pick from the first characters.
Make two String Arrays:
1) for numbers in words from "One" to "Ninty Nine".
2) for units "Hundreds" to so on as many u want....
check if the length is divisible by 3 or not
if yes then pick only one character from string, change it to integer and access direct to the number string array("One..."Ninty Nine"), check also for length remaining after every interation of the loop.
Pick the unit value from loop for(int loop=number.length/2 .
Ahmer Arman
22 years ago
Thanks for giving reply of my question. Their is another method with the name of parseInt it has two arguments
parseInt(String, int);
I cannot understand the meaning of int argument in this method.
Please help me in this regard.
Again thanks to all who gave me reply.
Ahmer Arman
22 years ago
Please help me regarding this method."parseInt(String str)" I cant understand how it works and what exceptions it can throw.
22 years ago
Whats the parseInteger() method do. How it works and what overloded method it has.
22 years ago