This question is for Java
Here is an example:
public class A {
int thing = 1;
public class B {
int thing = 2;
System.out.println("I want to print out thing from class A" +what goes here?);
}
}