I am having a little difficulty with a school assignment, long story short I declared two local variables in a method and I need to access those variables outside the method : <
You can't access local variables from method A in method B. That's why they are local. Take a look: https://docs.oracle.com/javase/tutorial/java/nutsandbolts/variables.html
As such, local variables are only visible to the methods in which they are declared; they are not accessible from the rest of the class.
I recommend to use solution written by @MadProgrammer - create class which contains feet
and inches
.