Workaround for generating variables dynamically in java
<p>I have a problem that I <strong>CANNOT</strong> solve with lists or arrays, which would be very easy. Here is the prompt:</p>

<p><em>A large company pays its salespeople on a commission basis. The salespeople 
receive $200 per week plus 9% commission of their gross sales for that week. For 
example, a salesperson who sells $5000 worth of merchandise in a week receives 
$200 plus 9% of $5000, or a total of $650. You are prompt user for the salesperson's 
firstName, lastName, and N number of items sold.
Write a program called Commission that inputs one salesperson's firstName, 
lastName, and the number of items and quantity of each iterm sold for last week and 
calculates and display that salesperson's firstName, lastName, and earnings. There 
is no limit to the number of items sold by a salesperson.
Note: we are not working with lists or arrays; store item type and value in variables for 
later computations.</em></p>

<p>There are sophisticated methods for dealing with class reloading, but I'm not familiar with them. I don't know how I can account for a variable number of items. Am I overthinking this?</p>
