Class ConversorCli

java.lang.Object
cl.conversor.vista.cli.ConversorCli

public class ConversorCli extends Object
Main class for CLI converter application
  • Constructor Details

    • ConversorCli

      public ConversorCli()
  • Method Details

    • main

      public static void main(String[] args)
      Main CLI application
      Parameters:
      args - String[3] (currency, currency, amount)
    • conversion

      public static Double conversion(Moneda orig, Moneda dest, Double monto)
      Parameters:
      orig - Origin currency
      dest - Target currency
      monto - Amount of `orig` currency to convert into `dest` currency
      Returns:
      Double currency conversion
    • ayuda

      public static void ayuda()
      Help and usage menu