title: Need a search method and a sort method for a catalog
body: <p>I have a project coming up for a Java class that I need help with. I am honestly not good at Java or passionate about it at all. However, I need to pass this course, so I need some assistance. I'm making a program that acts as an online bookstore. It starts with a main menu:</p>
  
  <pre><code>public static void menu(){
       System.out.println("----MAIN MENU----");
      System.out.println("1. View Catalog");
      System.out.println("2. Search Catalog");
      System.out.println("3. Sort Catalog");
      System.out.println("4. Checkout");
      System.out.println("5. Exit");
      System.out.println("Option: ");
      }
  </code></pre>
  
  <p>So far I've made the catalog:</p>
  
  <pre><code>public static void viewCatalog(){
      System.out.println("Welcome to the ABC Catalog!");
      System.out.println("Product Description   Product Category   Product Price");
      System.out.println("-----------------------------------------------------------");
      System.out.println("Alumni Drink ware   Gifts                  25.00 ");
      System.out.println("Binders             School Supplies         3.00 ");
      System.out.println("Bookbag             School Supplies        20.00 ");
      System.out.println("Fabulous Desserts   Textbooks              25.00 ");
      System.out.println("Folders             School Supplies         1.00 ");
      System.out.println("Gift Cards          Gifts                  25.00 ");
      System.out.println("Highlighters        School Supplies         1.00 ");
      System.out.println("Jacket              Campus Gear            65.00 ");
      System.out.println("JAVA Programming    Textbooks             150.00 ");
      System.out.println("Network Solutions   Textbooks              75.00 ");
      System.out.println("Pencils             School Supplies         1.00 ");
      System.out.println("Pens                School Supplies         2.00 ");
      System.out.println("Shorts              Campus Gear            10.00 ");
      System.out.println("Sweatshirts         Campus Gear            40.00 ");
      System.out.println("T-Shirts            Campus Gear            15.00 ");
      System.out.println("Web Design Ideas    Textbooks              25.00 ");
      System.out.println("---------------------------------------------------------");
  }
  </code></pre>
  
  <p>But I need a way to be able to enter some criteria, search the catalog, and print the matching criteria. I also need a method that sorts the catalog by either increasing price, decreasing price, alphabetical order, category type, or product description. The project has to have at least one object oriented method. I also need a way to add items from the catalog to a cart.</p>
  
  <p><strong>Any code snippets would be much appreciated.</strong> I'm not interested in any lectures about cheating, so please don't post anything like that. I hope someone will have some sympathy for a Web Dev student who just needs to pass this course in order to move on to courses that I am more passionate about.</p>