Variable area



  • I've got a few methods in the same class, how am I supposed to create in the same class? one method variables so that they can be used and modified other method♪ I mean, total variable for all methods.
    Thank you.



  • Explain this variable as a class field. Read and look at examples http://docs.oracle.com/javase/tutorial/java/javaOO/classvars.html ♪




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2