Problem with String.format() in web app
In one class of my web application I am trying to use the String.format() method, but the compiler claims it cannot identify the "format" symbol:
symbol : class format
location: class java.lang.String
I have imported java.lang.String.
The code snippet is as follows:
int i = 1;
String filename = new String.format("B%d.bmp", i );
the java doc on the String class right in the IDE lists the format procedure.
Any idea why it can't identify the symbol?

