a simple compile, but I expected different output.
So I expected the following to output 134:
publicclass Test{
publicstaticvoid main(String[] args){
int num;
num=34;
calc(num);
System.out.println("num="+num);
}
staticint calc(int num){
num+=100;
return num;
}
}
It is not yet clear to me why this still outputs num=34.... It looks like the calc functions takes the value of num to be 34, but does nothing with it...
Thank you in advance for any help with this beginner's question.

