Simple question, but no answer yet.
import java.util.*;
publicclass Voorbeeld{
publicstaticvoid main(String[] args){
// TODO code application logic here
Scanner kb =new Scanner(System.in);
System.out.println("Kies de gewenste munt voor omrekening: e(Euro),s(Dollar)");
String x = kb.nextLine();
if (x.equals("e"))
System.out.println("Voer het gewenste bedrag in Euro in:");
else
System.out.println("Voer het gewenste bedrag in Dollar in:");
int a = kb.nextInt();
int b;
if (x.equals("e"))
{ ( a*1.2119) = b;
System.out.println("Het door u gekozen bedrag in Euro was: €"+a);
}
else System.out.println("Het door u gekozen bedrag in Dollar was: $"+a);
The problem is in after the last "if" expression.
I want to give b the value a*1.2119 but it says unexpected type, any ideas?
I'm trying to make a simple Euro-Dollar converter.
Greetigs Jordy

