Write a java method that converts miles to kilometers using the following header: public static double convertToKilometers (double miles) Write a main method that prompts the user to enter the value of miles, calls the method then displays the value of kilometeres.
import java.util.Scanner;
public class MilesToKM {
public static double convertToKilometers(double miles){
return miles*1.60934;
}
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.print("Enter number of miles: ");
double miles = scan.nextDouble();
System.out.println("KM: "+convertToKilometers(miles));
}
}


Write a java method that converts miles to kilometers using the following header: public static double...