Do you understand the difference between scope and life time of variables?
Example:
public int func(int a, int b){
int x=0;
int y=9;
return (x+y);
}...
Type: Posts; User: Mr.777
Do you understand the difference between scope and life time of variables?
Example:
public int func(int a, int b){
int x=0;
int y=9;
return (x+y);
}...
Additional to Tjstretch post. A small example demonstrating you passing values. Well, you also can read through internet, but i don't know why many people hesitate googling things.
public class...