Here's my problem - I'm required to create a program using a simplistic form of float formating that is by the words of my professor and textbook, included in the Javax.swing class. The exact syntax used is String.format("%.2f" + floatName) which is supposed to reduce said float to output to two decimal places.
Unfortunately, my compiler (JBuilder 2005) is hellbent on not recognizing the format method. The above class has been imported in its entireity, still, it refuses to recognize the method. The syntax and importations match perfectly with the reference book, and frankly, I'm runing out of ideas and time.
How can I get this method to work, or baring that, what would be an alternative to getting my floats formated?
2007-02-07
09:30:59
·
3 answers
·
asked by
Shawn L
2
in
Computers & Internet
➔ Programming & Design
Thanks for trying, Milciades P, but no.
2007-02-07
11:14:40 ·
update #1