Results 1 to 4 of 4
Thread: String.format not in javadoc
- 11-08-2009, 04:48 PM #1
Member
- Join Date
- Oct 2009
- Posts
- 10
- Rep Power
- 0
String.format not in javadoc
Bonjour
pourquoi je ne trouve pas la fonction de class String.format
trouvé sur
java.sun.com/docs/books/tutorial/java/data/strings.html dont voici un extrait
you can write
String fs;
fs = String.format("The value of the float variable is %f, while the value of the " + "integer variable is %d, and the string is %s", floatVar, intVar, stringVar);
System.out.println(fs);
dans la doc de la class String sur
java.sun.com/j2se/1.4.2/docs/api/
:eek::o
-
String.format was introduced in Java 1.5 and can't be found in the 1.4 API. But you will find it in the 1.5, 1.6 and any later APIs:
String#format(...)Last edited by Fubarable; 11-08-2009 at 05:04 PM.
- 11-08-2009, 05:12 PM #3
Member
- Join Date
- Oct 2009
- Posts
- 10
- Rep Power
- 0
first sorry for the french, I forgot I was on english site !
ok I found it on
java.sun.com/j2se/1.5.0/docs/api/
I was not aware that I did not use the last doc,
is this one (just 2 line above) the last one ?
thank you.
-
No problem. I think that your intent was obvious.
Best to ask Sun this: Java APIsI was not aware that I did not use the last doc,
is this one (just 2 line above) the last one ?
thank you.
Similar Threads
-
spliting a string and checking each token's format
By Implode in forum New To JavaReplies: 1Last Post: 10-18-2009, 08:41 PM -
final String currentWorld = "Java Forums"; String.format("Hello %s", currentWorld);
By mcfrog in forum IntroductionsReplies: 0Last Post: 04-02-2009, 07:02 PM -
HOw to run ant javadoc
By Manfizy in forum New To JavaReplies: 24Last Post: 02-18-2009, 09:59 PM -
how to convert one format to another format
By mahipal_reddy621 in forum New To JavaReplies: 1Last Post: 12-02-2008, 10:21 AM -
How to create object dynamically with class name known in string format
By ranu_gokhe in forum Advanced JavaReplies: 1Last Post: 04-09-2008, 02:15 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks