I'm trying to figure out how to use JOptionPane to determine which deduction someone will receive. S - Single and M - Married. I just need to use the first letter of the input though.
public double calcinsDeduct()
{
double insDeduct;
if (status.startsWith(s))
insDeduct = 50.00;
else if (status.startsWith(m))
insDeduct = 100.00;
return insDeduct;
}