// import java.util.scanner;
// abstract class Converter {
// abstract protected double convert(double src);
// abstract protected String getSrcString();
// abstract protected String getDeststring();
// protected double ratio;
// public void run() {
// Scanner scanner = new Scanner(System.in);
// System.out.println(getSrcString() + "을" + getDestString() + "로 바꿉니다");
// System.out.println(getSrcString() + "을 입력하세요>>");
// double val = scanner.nextDouble();
// double res = convert(val);
// System.out.println("변환 결과:" + res + getDestString()+ "입니다");
// scanner.close();
// }
// }
// class main() {
// public static void main(String args[]) {
// Won2Dollar toDollar = new Won2Dollar(1200);
// toDollar.run();
// }
// }
import java.util.scanner;
abstract class Converter {
abstract protected double convert(double src);
abstract protected String getSrcString();
abstract protected String getDeststring();
protected double ratio;
public void run() {
Scanner scanner = new Scanner(System.in);
System.out.println(getSrcString() + "을" + getDestString() + "로 바꿉니다");
System.out.println(getSrcString() + "을 입력하세요>>");
double val = scanner.nextDouble();
double res = convert(val);
scanner.close();
}
}
public static void main(String args[]) {
Km2Mile toMile = new Km2Mile(1,6);
toMile.run();
}