Codecademy / docs

Codecademy Docs is a collection of information for all things code. 📕

Home Page:https://www.codecademy.com/resources/docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Edit] Subject: Java/HashMaps - additional methods

JustinhSE opened this issue · comments

Type of Edit (select all that apply)

Add new content (definitions, codeblocks, etc.)

Description (optional)

Addition of the following built-in methods:

  • map.containsKey(___)
  • map.containsValue(___)
  • map.replace(____ , _____)
    • replaces a current element
  • map.putIfAbsent(,_)
    • if the element isn't there, insert it

Expectation:
explanation of each method and codebyte of each method being shown

Code of Conduct

  • By submitting this issue, I agree to follow Codecademy Doc's Code of Conduct.

For Maintainers

  • Labels added
  • Issue is assigned

@JustinhSE I am interested in taking this issue on, kindly assign it to me.

@JustinhSE these are methods that we can apply on hashmap. So for each of these methods we will have to create separate term entries. In hashmap folder we will have to create a folder called terms and put all these methods entries in it.

I will close this Issue and create separate ones for these methods. @Abdouhaji please check the new issue that I will create based on this issue.

@Abdouhaji please checkout the new issues. Thank you for creating this @JustinhSE 🚀