Skip to content

olekskov/jv-storage

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jv-storage

Implement the Storage of key-value type that is parameterized with two types of data. You should be able to put new key-value pair and to get value by key.

Example:

Storage<Integer, Box> storage = new StorageImpl<>(); 
Box box = new Box();
storage.put(22, box); 
Box value = storage.get(22); // returns the Box
int size = storage.size(); // returns storage size

You should solve this task using one or two arrays (this depends on your implementation). If you use arrays for your solution, we assume that the maximum number of elements in our Storage is 10.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%