public class Receipt
public static void main (String[] args)
{
// Calculate total owed, assuming 8% tax/15% tip
System.out.println("Subtotal:");
System.out.println("int.Subtotal:=108");
System.out.println("Mystring = Mystring.Replace(38+40+30,Subtotal)");
System.out.println("Tax and Tip:");
System.out.println((("Subtotal")*.08)+(("Subtotal")*.15));)
System.out.println("Total:");
System.out.println("Subtotal"+("Subtotal")*.08 +("Subtotal")*.15);
}
}
On line 10 it's giving me the ; expected error but when i put it in it gives me a illegal start of expression error