Q:

Trying to add if statement values to the total answer in Java

quite new to Java so trying to understand it can be difficult.  
Anyways the problem, as part of a task I have to code a theatre tickets console application.  I've almost finished I'm just trying to add the last part
As part of the task we have to ask the user if they want the tickets to be posted, if yes this incurs a charge which will be applied to the total charge.  Currently I'm unsure of how to do this.  At the moment I am currently working with If and else statements and.. Well you'll see below. 
   System.out.println ("Do you require the tickets to be posted?\n(£2.34 for post and packing for the entire order)\n(please enter 'Yes' on the next line if you require postage)");
   String postinp = scanner.next();

           if ("Yes".equals(postinp)){
            System.out.println("Postage will be added to your cost" );
           }
            else
            System.out.println("Postage will not be added to your cost");

Well I'm trying to code, if the user enters 'yes' then it adds on the postage charge to the total, but in this section of code I'm unsure how to do that. 
Any help would be appreciated.  Thanks!  

A:

Inside the if-statement all we need to do is add your £2.34 to the total sum being calculated by the program. 
    public static void main(String args[]) {
       Scanner input = new Scanner(System.in);
       double total = 10.00;
       System.out.println("Do you require the tickets to be posted?\n(£2.34 for post and packing for the entire order)\n(please enter 'Yes' on the next line if you require postage)");

       if ("Yes".equalsIgnoreCase(input.next())) {
          System.out.println("Postage will be added to your cost");
          total = total + 2.34;
       } else
          System.out.println("Postage will not be added to your cost");
   }

