0% found this document useful (0 votes)
638 views1 page

03 Laboratory Exercise 1 PDF

The document provides instructions for a laboratory exercise on implementing linked lists with Java. Students will [1] create a Java project to store two linked lists, one for song titles and one for artists. They will then [2] combine these lists into a third playlist linked list. Finally, students will [3] display the contents of the three linked lists and submit their work to the instructor for grading based on correctness, logic, efficiency, and syntax.

Uploaded by

Jayson Aguilar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
638 views1 page

03 Laboratory Exercise 1 PDF

The document provides instructions for a laboratory exercise on implementing linked lists with Java. Students will [1] create a Java project to store two linked lists, one for song titles and one for artists. They will then [2] combine these lists into a third playlist linked list. Finally, students will [3] display the contents of the three linked lists and submit their work to the instructor for grading based on correctness, logic, efficiency, and syntax.

Uploaded by

Jayson Aguilar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

IT1815

Laboratory Exercise
Linked Lists with Java
Objective:

At the end of the exercise, the students should be able to:

▪ Implement common types of linked list.

Software Requirement:

▪ Latest version of NetBeans IDE


▪ Java Development Kit (JDK) 8

Procedure:

1. Create a folder named LastName_FirstName in your local drive. (ex. Reyes_Mark)


2. Create a Java project named MyLinkedList. Set the project location to your own folder.
3. Import LinkedList from the java.util package.
4. Construct a LinkedList object named songs of type “String”. Syntax: LinkedList<String>
5. Add five (5) song titles to your linked list.
6. Construct another LinkedList object named artists.
7. Add the five (5) singers/bands of those songs to the second linked list.
8. Construct another LinkedList object named playlist that combines the two (2) linked lists using the
get() method.
9. Display the content of the three (3) linked lists. The elements of the third linked list should be
displayed in separate lines using the for-each loop.
10. Save the Java program. Then, inform your instructor once you are done.
Sample Output:

GRADING RUBRIC (100 points):


Criterion Description Max Points
Correctness The code produces the expected result. 40
Logic The code meets the specifications of the problem. 40
Efficiency The code is concise without sacrificing correctness and logic. 10
Syntax The code adheres to the rules of the programming language. 10

03 Laboratory Exercise 1 *Property of STI


Page 1 of 1

You might also like