• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Formatter class problem

 
vineet walia
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


i dont know that much of formatter class any body plese throw some light on it/
 
Sebastian Janisch
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Nitish Bangera
Ranch Hand
Posts: 537
Eclipse IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
vineet walia
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ???
 
Himanshu Kansal
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
just type "java formatter" in your favorite search engine
 
Nitish Bangera
Ranch Hand
Posts: 537
Eclipse IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ankit Garg
Sheriff
Posts: 9528
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Nitish Bangera
Ranch Hand
Posts: 537
Eclipse IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hehe even this is a examlab question.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic