Also, can the user buy and sell many times?
If so, I have an idea.
Preferably use an ArrayList, though you could use a Vector I suppose.
Have an ArrayList of products.
Say you start out with
Hand saw - 25
Cotton Candy -100
Garden Tools - 49
Lightsabers - 3
ArrayList<String> items = new ArrayList<String>();
ArrayList<Integer> quantities = new ArrayList<Integer>();
// I'm using them in order so the first value is the index in the ArrayList
items.add(0, "Hand saw");
quantities.add(0, 25);
items.add(1, "Cotton Candy");
quantities.add(1, 100);
items.add(2, "Garden Tools");
quantities.add(2, 49);
items.add(3, "Lightsabers");
quantities.add(3, 3);
Then
System.out.println("We have the following items:");
for (int i =0; i < items.size(); i++)
{
System.out.println("Item " + (i+1) + " - " + items.get(i) + "- quantity " + quantities.get(i));
}