[ajug-members] The method format(String, Object[]) in the type Formatter is not applicable for the arguments (String, String, int)
Christopher Mawata
Christopher-Mawata at utc.edu
Sat Aug 11 12:48:55 EDT 2007
I think you are mistaken -- you couldn't have compiled it in 1.4 since Formatter is introduced in 1.5.
Probably autoboxing is not happy with int --> Object
Chris
-----Original Message-----
From: Christopher Fowler <cfowler at outpostsentinel.com>
To: ajug-members at ajug.org
Date: Thu, 09 Aug 2007 16:58:55 -0400
Subject: [ajug-members] The method format(String, Object[]) in the type Formatter is not applicable for the arguments (String, String, int)
I'm compiling a program in Java 1.6 that I've always have been able to
compile in 1.4. I'm not getting this error that I'm not sure how to
fix:
formatter.format("%s%06d", prefix, i);
^^^^^^
The method format(String, Object[]) in the type Formatter is not
applicable for the arguments (String, String, int)
It seems to me that they've may have changed the conventions used by
printf to their own?
_______________________________________________
ajug-members mailing list
ajug-members at ajug.org
http://www.ajug.org/mailman/listinfo/ajug-members
More information about the ajug-members
mailing list