This was one of the biggest projects from the Java Programming 1 course that used object oriented programming and arrays. It used a for loop to add a few items to an inventory array. Then the user can go through and purchase from the inventory until they decide not to. The program checks the string that the user types in to see if there is actually an item by that name in the inventory, and also checks that there is enough in stock to sell. If the program does find the item and there is enough in stock, it will run the calculations and display the new inventory. Otherwise it will display an error message.