Hello,
I'm very new to Java, and I'm taking a class. I'm NOT asking for someone to do my homework, I am just asking advise. We started the switch statement, and have already had a lab for constructors. For the switch statement lab, we have a user input a product number and how much is sold, then output the total sold. My code works, but I'm positive that I'm suppose to use a constructor, I'm just not sure if it's best practice to put my variables in the constructor, or maybe some other part of the code. I googled and saw that the switch statement should NOT go in the constructor. I attached my code, and someone could offer a suggestion, I would really appreciate it