I am learning programming with Java through a textbook. A programming exercise asks you to:
(Swing common features) Display a frame that contains six labels. Set th
I would suggest that if you are learning to program for professional reasons then you should follow as it given in the book. Because in bigger projects (if you might be working on one in future), this practice is very common and as you said, readability and a variable name. Say it is like a convention.