Hw 4

  • Write a program using Collections(List,Hashset,Map)
  • Create a List that will hold the collection of strings
  • Add your 3 IS classes such as (IS147,IS247,IS413)to your list collection
  • print the list collection
  • use addAll method from the collection class add three classes such as ( IS300, IS310,IS300)
  • print the list collection again
  • print the size the your collection
  • Create a Hashset object
  • use addAll method and add your List collection to the Hashset object
  • print the hashset
  • print the size of your current Hashset collection
  • Create a HASHMAP object that takes string and returns string
  • add key value pair combination to the HASHMAP object
  • Create a void method call printDetail that will take Map as an argument
  • Use the following method and properties from the hashmap object
  • Map(this is the argument that is passed in the printDetail method),size,isempty,containsKey,,remove, get method)
  • Use clear method after you call the printDetail method
  • Again call the printDetail Method
  • Expected output
  • Due Date :07/02/2023 11:59 PM Sunday

    How to submit Homework?

  • Add your full name and email at the top of the file using a comment tag.
  • Compile and run your program, entering the required inputs.
  • Take a screenshot of the result.
  • Zip your project with the source code, then upload it on Blackboard.
  • Upload screenshot on Blackboard.
  • Note: Submit the assignment on Blackboard by the due date. Email and late submissions will not be accepted.