I think you just want currency to be a String i.e.
String currency =UserInput.readString();
Type: Posts; User: Shambolic
I think you just want currency to be a String i.e.
String currency =UserInput.readString();
You are trying to create a variable called 'currency' which can hold an object of type Sterling, but it seems you haven't written a class called Sterling, hence the compiler error.