String number = Float.toString(number);
I think what you are trying to do is convert the number n to a string yes?
What I would do is this:
String number = new Float(n).toString();
Here I create a Float object from my float primitive, then convert it to a String. You have tried to call the toString method statically and then pass the variable number instead of n.
Reputation Points: 395
Solved Threads: 192
Veteran Poster
Offline 1,136 posts
since Aug 2007