问题描述:

This question already has an answer here:

  • What does a “Cannot find symbol” compilation error mean?

    6 answers

网友答案:

You can make that string variable to which you are saving the input from the JOption dialog box as a public global variable. That should make it accessible from inner classes. This question might be helpful to learn about inheritance. it should show you how to set variables so they can be inherited correctly. Difference between private, public, and protected inheritance

相关阅读:
Top