Skip to content

Java Derusting#5

Open
LauraV-702 wants to merge 53 commits intoauberonedu:mainfrom
LauraV-702:main
Open

Java Derusting#5
LauraV-702 wants to merge 53 commits intoauberonedu:mainfrom
LauraV-702:main

Conversation

@LauraV-702
Copy link
Copy Markdown

Completed Java Derusting homework assignment for SDEV333

LauraV702 added 30 commits January 3, 2025 08:37
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! I appreciate your diligence with commits, but you can consider making them just a bit more infrequently. Maybe once or twice per file in this repo would be sufficient.

Comment thread src/ListPractice.java

public static void main(String[] args) {
// Create an empty ArrayList of Strings and assign it to a variable of type List
ArrayList<String> stringList = 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)

Comment thread src/MapPractice.java
// Create a HashMap with String keys and Integer values and
// assign it to a variable of type Map

HashMap<String, Integer> mappy = 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> StringSet = 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> Spiders = 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)

Comment thread src/StringPractice.java
Comment on lines +33 to +37
Spiders.add("Peter Parker");
Spiders.add("Miguel O'Hara");
Spiders.add("Miles Morales");
Spiders.add("Gwen Stacy");
Spiders.add("Peni Parker");
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.

Fun!

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