I'm not sure why the attached screenshot is showing all the requirements as "?". On the actual task it's showing the first two ticked and the code does display the results.
I know that the display text command should be in the main method but am unsure how to do that.
please help
thank youi
package com.codegym.task.task03.task0303;
/*
Currency exchange
*/
public class Solution {
public static void main(String[] args) {
//write your code here
convertEurToUsd(10, 1.25);
convertEurToUsd(5, 1.5);
}
public static double convertEurToUsd(int eur, double exchangeRate) {
//write your code here
double convertEurToUsd = eur*exchangeRate;
System.out.println(convertEurToUsd);
return convertEurToUsd;
}
}