Forums Register Login

Formatter class problem

+Pie Number of slices to send: Send


i dont know that much of formatter class any body plese throw some light on it/
+Pie Number of slices to send: Send
The Formatter puts contents for you into a nice and readable format for display. The real power won't really appear with the use of booleans, but passing a double value of 12345678.89 in and with the right flags getting a 12,345,678.89 back makes it a little clearer.

Google for a tutorial on the Java Formatter class.
+Pie Number of slices to send: Send
Best you go to the java api docs for this. Formatter is one of the final classes and the format method of the Formatter class doesn't echo the output(prints to the console) instead it simply formats and returns a formatter instance. The java api docs have a really good description on it.
+Pie Number of slices to send: Send
 

Nitish Bangera wrote:Best you go to the java api docs for this. Formatter is one of the final classes and the format method of the Formatter class doesn't echo the output(prints to the console) instead it simply formats and returns a formatter instance. The java api docs have a really good description on it.



can you provide me that link ???
+Pie Number of slices to send: Send
just type "java formatter" in your favorite search engine
+Pie Number of slices to send: Send
You can find java 6 api here . Go to java.util and then find the formatter class. I guess as Himanshu said you should try finding it using the search engine.
+Pie Number of slices to send: Send
vineet please Quote Your Sources when you post a question. This is not optional, your questions will be deleted if you don't give a proper source...
+Pie Number of slices to send: Send
Hehe even this is a examlab question.
If you try to please everybody, your progress is limited by the noisiest fool. And this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1089 times.
Similar Threads
toString() on Integer class
Question on format
Strings
wrapper class?
Printf
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 02:11:59.