Hy everyone...Can someone help me with this code ? What is wrong ?
package com.codegym.task.task03.task0303;
/*
Currency exchange
*/
public class Solution {
public static void main(String[] args) {
//write your code here
System.out.println(convertEurToUsd(9 , 3));
System.out.println(convertEurToUsd(5 , 9));
}
public static void convertEurToUsd(int eur, double exchangeRate ) {
//write your code here
exchangeRate = 0.5;
double Dollars = eur*exchangeRate;
return Dollars;
}
}