Update MyClass.java

Added getter MyClass:getMyField.