Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: Kilometer to Miles - Formatted

This program is the same as Kilometers to Miles.

Tutorial Details:

This program is the same as Kilometers to Miles, but it formats the output to display the output to only one decimal place. It also shows how to define a constant.

Note 1: Constant values are commonly declared static final before the methods are defined.

Note 2: The string pattern that's passed to the DecimalFormat constructor shows how many digits are printed after the decimal point.


 

Rate Tutorial:
http://www.roseindia.net/java/java-tips/examples-introductory/dialog/kmToMiles-formatted.shtml

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
Kilometer to Miles - Formatted

View Tutorial:
Kilometer to Miles - Formatted

Related Tutorials:

Using XML and JSP together - JavaWorld March 2000
Using XML and JSP together - JavaWorld March 2000
 
Navigate through virtual worlds using Java 3D
Navigate through virtual worlds using Java 3D
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.