I have this problem wherein I have to convert kilometers into miles. I\'m a novice programmer so bear with me.
Here\'s my code so far:
import java.ut
You need to define constant variable as a float, since km is read as a float.
final float KM_TO_ML = 0.621371F; m = km * KM_TO_ML;