so I have exercise from a college to finish and I believe I am close to it but yet so far. I am not asking for a specific answer, I would love to know how to "overwrite a variable?" (not sure if thats a right name for that kind of action).

Here is the question : <http://pastebin.com/riDYS39D>

The problem which I have is that, I don't know exactly how to overwrite data in variable which was created in if statement.

and the code, any help is always welcome 

```
import java.util.Scanner;

public static void main(String[] args) {

    Scanner input = new Scanner(System.in);
    double grossPaid, allowance1, allowance2, totalTaxPaid, netPay, grossAfterAllowance;
    double taxSaved;
    final double GROSSRATIO;
    String idNumber, name, address, strln;
    char maritalStatus;
    allowance1 = 25000;
    allowance2 = 20000;
    GROSSRATIO = 500000;

    taxSaved = 0.00;

    /* trash
    grossAfterAllowance = grossPaid - allowanceGiven;
    totalTaxPaid = grossAfterAllowance - netPay;
    */

    System.out.println("Enter your employee identification number: ");
    idNumber = input.nextLine();

    System.out.println("Enter your name: ");
    name = input.nextLine();

    System.out.println("Enter your address: ");
    address = input.nextLine();

    System.out.println("Enter your marital status: ");
    strln = input.next();
    maritalStatus = strln.charAt(0);
        if (maritalStatus == 'S')                                                                                                          
            taxSaved = 0.20;

        if (maritalStatus == 'M')
            taxSaved = 0.23;

    System.out.println("Enter your gross payment: ");
    grossPaid = input.nextDouble();
       if (grossPaid < GROSSRATIO)
        netPay = (grossPaid - allowance1) * taxSaved;

         if (grossPaid >= GROSSRATIO)
        netPay = (grossPaid - allowance2) * taxSaved;

    System.out.println(maritalStatus);
    netPay = (grossPaid * maritalStatus);
    System.out.println("Name: " + name);
    System.out.println("ID: " + idNumber);
    System.out.println("Address: " + address);
    System.out.println("Marital Status: " + strln);
    System.out.println("Gross Payment: " + grossPaid);
    System.out.println("Net pay: " + netPay);

    }

```

}