title: Compute Total Tip and Tax for Restaurant Bill
body: <p>I need to use two methods. One is <code>getMealCharge()</code> and needs to return a <code>mealCharge</code> and no argument. The second is <code>computeAndPrintTotalBill()</code> and needs to do calculation in that method.</p>
  
  <p>My question is- when I get the user input from first method, how do I get that number to apply to the second method so it can calculate.</p>
  
  <p>If I put everything on the first method, it will work. But, for some reasons in the second method it won't show up. If anyone can please help me finding what I am doing wrong. Thank you. </p>
  
  <pre><code>import java.util.Scanner;
  public class ComputeTip{ 
  
     final double taxRate = 0.0725;
     final double tipRate = 0.15; 
     double mealCharge;
     double tax;
     double tip;
     double total;
  
     public double getMealCharge(){
  
        System.out.println("Enter meal charge: ");
        Scanner keyboard = new Scanner(System.in); 
        mealCharge = keyboard.nextDouble(); 
        return mealCharge;
     }
  
     public void computeAndPrintTotalBill(double getMealCharge, double mealCharge){
  
        Scanner keyboard = new Scanner(System.in);
        tax = mealCharge * taxRate;
        tip = mealCharge * tipRate;
        total = mealCharge + tax + tip;
  
        Test.println("charge: " + mealCharge);
        Test.println("tax: " + tax);
        Test.println("tip: " + tip);
        Test.println("total: " + total);   
     }
  }
  </code></pre>