Making a Program to calculate a cellphone bill in Java
<p>I'm not sure why it isn't working, eclipse keeps telling me "A" "B" and "C" aren't defined as variables and keeps suggesting to make them defined ("A" "B" and "C" are all options the user can input to get a result). Could someone find a fix ?</p>

<pre><code>/*
 * George Sayegh
 * Febuary 17th 2016
 * program for phone plan
 */

import javax.swing.JOptionPane;
public class Feb21716 {

    public static void main(String[] args) {
    double Package, Data, Bill;

        //Get Package
        String Packagetext = JOptionPane.showInputDialog("Enter your wireless service carrier plan" 
        + "\n Package A: For $29.99 per month 2GB of data is provided. Additional data is $10.00 per GB." 
        + "\n Package B: For $39.99 per month 4GB of data is provided. Additional data is $5.00 per GB. "
        + "\n Package C: For $49.99 per month unlimited data is provided."
        + "\n Please enter only the letter in Upper Case ex. Package A = A");
        Package = Double.parseDouble(Packagetext);

        //Get Amount of Data Used
        String Datatext = JOptionPane.showInputDialog("Please enter the Amount of data you use in GB" 
        + "\n Please note, just enter the numbers "
        + "\n ex. 750 MB = .75  ");

        if(( Package == A )&amp;&amp;(Data &lt;= 2)){
            // when Package is A and less than 2GB
            Bill = 29.99;
        } else if ((Package == A)&amp;&amp;(Data &gt; 2)) {
            // when package is A and more than 2GB
            Bill = 29.99 + 10 * Data;
        } else if ((Package == B)&amp;&amp;(Data &lt;= 4)) {
            // when package is B and less than 4GB
            Bill = 39.99;
        } else if ((Package == B)&amp;&amp;(Data &gt; 4)){
            // when package is B and more than 4GB
            Bill = 29.99 + 10 * Data;
        } else if ((Package == C)&amp;&amp;(Data &lt; 50)){
            // when package is C and less than 50gb
            Bill = 49.99;
        } else if ((Package == C)&amp;&amp;(Data &gt; 50)){
            // when package is C and more than 50gb
            Bill = JOptionPane.showMessageDialog(null, "You have entered an invalid Number");
        }

        JOptionPane.showMessageDialog(null, "Your bill is: $" + Bill);



        }


    }

}
</code></pre>