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?

[506 byte] By [Skrelton] at [2007-11-26 9:42:10]
# 1
String.format() is available only since jdk1.5. Are you using a previous compiler?
KarthikR at 2007-7-7 0:41:21 > top of Java-index,Development Tools,Java Tools...
# 2
I'm using what came with the IDE, according to the info:Product Version: Java Studio Creator 2 Update 1 (Build 060417)IDE Versioning: IDE/1 spec=5.9.1.1 impl=060417Java: 1.5.0_06
Skrelton at 2007-7-7 0:41:21 > top of Java-index,Development Tools,Java Tools...
# 3
Pl. refer to: http://forum.sun.com/jive/thread.jspa?forumID=123&threadID=102390
KarthikR at 2007-7-7 0:41:21 > top of Java-index,Development Tools,Java Tools...
# 4

Hi KarthikR, thank you for your response.

If I read that link correctly, it appears that applications created with JSC will not run on 1.5 (Java 5?) platforms (although the IDE itself will run on such platforms). It states that only Java class libraries created from JSC will run on 1.5. So, in that case, it seems String.printf() would only be supported in a java class library built for 1.5. Is this correct, or am I missing something?

Regards

Skrelton at 2007-7-7 0:41:21 > top of Java-index,Development Tools,Java Tools...
# 5
That is my reading too; the FAQ does state that "all web applications are constrained to being compiled and run with a target Java 1.4 platform".
KarthikR at 2007-7-7 0:41:21 > top of Java-index,Development Tools,Java Tools...