Question: 1 - Use Documentation Comments where needed and use Javadoc to create HTML files for documentation. 2 - In your project src folder add this

1-Use Documentation Comments where needed and use Javadoc to create HTML files for documentation.
2-In your project src folder add this word document with all your group members names and paste the screen shots of your output after each question.
2-Right Click on your Project Folder in Eclipse, Copy Option is available. Create a copy of the Project and upload the zipped folder using Moodle.
Write a java Program to perform these operations :
1-Create a List and Set of Car Names and populate them with Cars. 20
Display Your Collection using 3 different ways: 10
Example: courses is your list name.
a) Using foreach as below
example:
courses.forEach((course)->{
System.out.println("Course Name: "+course);
}); 10
b) Using Iterator
example:
Iterator iter = courses.iterator();
while(iter.hasNext()){
System.out.println("Course Name: "+iter.next());
}
c) Using Stream
example:
courses.stream().forEach((n)->{
System.out.print(n+"");
}); 10
d)Create a Hash Map of Car Names and Year Manufactured and populate this Map with 5 Cars.Display these Cars Using 3 different ways. 50

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!