I feel like I am missing some form of conversion. I am still new to Java so I don't know much about it. Please help.
public static void main(String[] args){
String mealCharge;
double tax;
double tip;
double total;
tax = mealCharge * 0.0625; //food tax is 6.25%
tip = mealCharge * 0.15; //tip is 15%
total = mealCharge + tax + tip;
mealCharge = JOptionPane.showInputDialog("Please enter the charge for the meal.");
JOptionPane.showMessageDialog(null, "Your total will be $" + total ".");
}
}