I'm fairly new to Java -- can someone please give an applicable reasoning for what the Getter and Setter methods's purposes are respectively?
Doesn't it seem redundant to create two different methods in a class to receive data and apply the data? Why aren't they consolidated into one method?
intfield calledvalue. One version of the class hasgetValueandsetValuemethods, and the other is whatever you're proposing.