Skip to content

OOP2018/set-practice-Mamadou-cherif

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Review Assignment Due Date

Collections Practice

These exercises demonstrate properties of some common collections.

  1. Download the starter code from Github Classroom.
  2. Do the exercises.
  3. Write your findings in README.md
  4. Push the completed code to Github.

Instructions

See Collections-practice in week4 folder of class web.

Your Answers

Answer the questions in the exercises here. Push your answer and code to Github Classroom.

  • When you print elements in the set, are they in same order as you added them?

  • what is the command to remove all elements from a set?

  • When you add elements in a different order and print them, did the order change?

  • Can you add a duplicate "cat" and "dog" to set?

  • What is the result when you use TreeSet instead of HashSet?

  • Could we make setExplorer work with either Set or List? How?

About

Practice using a Set.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%