Im writing a class for a card that takes in two string parameters,
When I check the string if it's an "a" it throws the NumberFormatException
error.
Card(String s, String f)
{
suit = s;
if(f == "a")
{
value = 11;
}
else if (f == "j" || f == "k" || f == "q")
{
value = 10;
}
else
{
value = Integer.parseInt(f);
}
face = f;
}