aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Formatter class problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Formatter class problem " Watch "Formatter class problem " New topic
Author

Formatter class problem

vineet walia
Ranch Hand

Joined: Feb 16, 2008
Posts: 138


i dont know that much of formatter class any body plese throw some light on it/
Sebastian Janisch
Ranch Hand

Joined: Feb 23, 2009
Posts: 1183
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.


JDBCSupport - An easy to use, light-weight JDBC framework -
Nitish Bangera
Ranch Hand

Joined: Jul 15, 2009
Posts: 537

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.


[ SCJP 6.0 - 90% ] , JSP, Servlets and Learning EJB.
Try out the programs using a TextEditor. Textpad - Java 6 api
vineet walia
Ranch Hand

Joined: Feb 16, 2008
Posts: 138
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

Joined: Jul 05, 2009
Posts: 257
just type "java formatter" in your favorite search engine


Experience and talent are independent of age
Nitish Bangera
Ranch Hand

Joined: Jul 15, 2009
Posts: 537

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

Joined: Aug 03, 2008
Posts: 9280
    
  17

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...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Nitish Bangera
Ranch Hand

Joined: Jul 15, 2009
Posts: 537

Hehe even this is a examlab question.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Formatter class problem
 
Similar Threads
Question on format
Printf
wrapper class?
Strings
toString() on Integer class