Hi all and sorry for my question :-(
I've this sample code:
public class ShareVar {
public static void main(String[] args) {
System.out.println("Number is: "+c);
}
private static int Calc(){
int a=10; int b=3; int c;
c=a+b;
return c;
}
}
variable c is not shared to main class
How allow c be share in whole code?
thanks!