Incorrect result after addition within a function
<p>I have a java program that does not return the correct answer and I cannot figure out why. here's the code:</p>

<pre><code>public class hello {
    public static void main(String[] args) {
        int a =5;
        doubleNumbers(a);
        System.out.println(" 5 doubled is:"+a);
    }

    private static void doubleNumbers(int a) {
        a = 5*2;
    }
}
</code></pre>

<p>It is my first java program after helloWorld.</p>
