The class should contain main method to enter the value in yards to be converted. Also contain two other methods to make the calculations to meters and feet and print the results to DOS screen.
My problem: Is this correct so far? Also, what would need to be done so that I don't have to have the user re-enter the value every single time?
Expand|Select|Wrap|Line Numbers
- import java.util.*;
- Public class YardsConversion
- {
- static double YARDS_TO_METERS = ; /* 1 yd. = meter */
- static double YARDS_TO_FEET= ; /* 1 yd. = feet */
- Public static void Main(String [] args)
- {