aspose file tools*
The moose likes Beginning Java and the fly likes format Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "format" Watch "format" New topic


meeta gaur
Ranch Hand

Joined: Dec 05, 2012
Posts: 305


Exception in thread "main" java.util.IllegalFormatFlagsException: Flags = '-0'
at java.util.Formatter$FormatSpecifier.checkNumeric(
at java.util.Formatter$FormatSpecifier.checkFloat(
at java.util.Formatter$FormatSpecifier.<init>(
at java.util.Formatter.parse(
at java.util.Formatter.format(
at Print.main(

I'm expecting: 0232554.456

My one regret in life is that I am not someone else.
- Woody Allen
meeta gaur
Ranch Hand

Joined: Dec 05, 2012
Posts: 305

aha! got it.I was using - and 0 together.
I agree. Here's the link:
subject: format
Similar Threads
Help please, due in 1 hour. Does not compile
It doesnot print the content the file
Error in System.out.printf format
Reordering Alphabets