How to add a double with a variable only using one double <pre><code>public static void main(String[] args) { Scanner in = new Scanner(System.in); System.out.println("Insert value for year (Ez = 2014): "); double year = in.nextDouble(); System.out.println("Insert value for day (Ex = 12): "); double day = in.nextDouble(); System.out.println("Insert number for month (Ex = 3): "); double month = in.nextDouble(); double totalDays = day; if (month == 1) { } else if (month == 2) { double totalDays = (totalday + 31); } } </code></pre> <p>I'm trying to take the <code>totalDays</code> double and use it in the if statement. I want to add it with a variable without using anymore doubles. How?</p>