I have a java program that does not return the correct answer and I cannot figure out why. here's the 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;
}
}
It is my first java program after helloWorld.