This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; //Importing Utility Scanner | |
public class Assignment1 | |
{ | |
static Scanner sc=new Scanner(System.in); //Scanner | |
static final double CONVERT_MILES=1.609; //Constant Value | |
public static void main(String[]args) //Always have a main method | |
{System.out.print("Enter number of miles: ");//command line prints Enter number miles here | |
double numMile=sc.nextDouble();//Scanner scans for the users inout |