One way is to have setter and getter methods that return the variable. Another, less efficient, way is to simply make the variable public and call it using the class object.

JavaClass jc = new...