Advertisement

Generic Class Parameters and the Java Collection Framework

  • Mitsunori Ogihara
Chapter

Abstract

Consider writing an application that interacts with the user to build a list of merchandise items. Each item is represented by its name and price (in dollars). Like the pizza applications from the previous chapter, the application must allow the user to read data from a file, write the data to a file, add an item, remove an item, and view the data. In addition, the program must allow the user to revise the name as well as the price of an item. Furthermore, the program must allow the user to rearrange the items on the list in the increasing order of the names or in the increasing order of the prices.

Copyright information

© Springer Nature Switzerland AG 2018

Authors and Affiliations

  • Mitsunori Ogihara
    • 1
  1. 1.Department of Computer ScienceUniversity of MiamiMiamiUSA

Personalised recommendations