Jump to content


Inserting The End Calculations Into Textfield


  • Please log in to reply
1 reply to this topic

#1 Andrew Fisher

Andrew Fisher

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 07 January 2011 - 09:41 PM

82: cannot find symbol
symbol  : method format(double)
location: class java.lang.String
racer1Percentage.setText("%.2f", String.format(total.getRacer1Percentage()));
                                      
83: cannot find symbol
symbol  : method format(double)
location: class java.lang.String
racer1Total.setText("%.2f", String.format(total.getTotalTime()));

Why would it squak at me about data types?? Can't Figure it out. Any Suggestions.

#2 Kraicheck

Kraicheck

    Advanced Member

  • Members
  • PipPipPip
  • 884 posts
  • Gender:Male
  • Location:Belgium

Posted 08 January 2011 - 02:28 PM

I suggest looking at the definition of the format method