wood burning stoves 2.0
The moose likes Swing / AWT / SWT and the fly likes DecimalFormat error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "DecimalFormat error" Watch "DecimalFormat error" New topic
Author

DecimalFormat error

Mike Lipay
Ranch Hand

Joined: Sep 11, 2007
Posts: 171
I'm not understanding why, but mf.format works while cf.format throws an error.




Here is the run time error:
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 40436
    
  28
Which line do you get the Exception at?
Mike Lipay
Ranch Hand

Joined: Sep 11, 2007
Posts: 171
Campbell Ritchie wrote:Which line do you get the Exception at?


#182: if (c == 4) return cf.format(serviceTable[r][c]);
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: DecimalFormat error