In a class called Coins, the following members are present: to. Two private string variables called country and currency, the value of the variables it must be typed from the keyboard. The code to request this value must write it in the class of the Main method. b. Create a custom constructor with two parameters of type String that accepts the parameters corresponding to the variables of the class and showing a message. By example "The legal currency of El Salvador is the dollar", in this message you must concatenate the variables that you will receive in the parameter. Implement the class.
import java.util.*;
class monedaPais{
private String moneda, pais;
Scanner sc = new Scanner(System.in);
public static void main(String args[])
{
System.out.println("ingrese el pais");
pais = sc.nextLine();
System.out.println("Ingrese la moneda");
moneda = sc.nextLine();
}
public monedaPais (string moneda, string pais){
this.moneda = moneda;
this.pais = pais;
}
}