Skip to content

Java Derusting Practice#18

Open
arcjun01 wants to merge 7 commits intoauberonedu:mainfrom
arcjun01:main
Open

Java Derusting Practice#18
arcjun01 wants to merge 7 commits intoauberonedu:mainfrom
arcjun01:main

Conversation

@arcjun01
Copy link
Copy Markdown

@arcjun01 arcjun01 commented Jan 7, 2025

Completed this assignment

Copy link
Copy Markdown
Owner

@auberonedu auberonedu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job, and cool collection of links to review!

Comment thread src/MapPractice.java
public static void main(String[] args) {
// Create a HashMap with String keys and Integer values and
// assign it to a variable of type Map
HashMap<String, Integer> maps = new HashMap<>();
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remember to use interface types (Map)

Comment thread src/SetPractice.java
public class SetPractice {
public static void main(String[] args) {
// Create a HashSet of Strings and assign it to a variable of type Set
HashSet<String> wordSet = new HashSet<>();
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remember to use interface types (Set)

Comment thread src/StringPractice.java
}

// Create an ArrayList of Strings and assign it to a variable
ArrayList<String> strList = new ArrayList<>();
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remember to use interface types (List)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants