1: //DimensionConverter.java
3: /**
4: * Class of static methods to perform dimension conversions.
5: */
6: public class DimensionConverter
7: {
8: public static final int INCHES_PER_FOOT = 12;
9:
10: public static double convertFeetToInches(double feet)
11: {
12: return feet * INCHES_PER_FOOT;
13: }
15: public static double convertInchesToFeet(double inches)
16: {
17: return inches / INCHES_PER_FOOT;
18: }
19: }