how to get variable value from other class and call to other class code example
Example: how to operate on values from different classes in java
class A {
int a = 10;
}
public class B{
public static void main (String args[]){
A a = new A();
System.out.println("I live in A " + a.a);
}