COMS 104 Minnesota State University Code Segment Prints Lab Report
Question Description
I’m working on a java project and need guidance to help me understand better.
You will explain what each code segment prints out and draw a picture of the linked list after each step. You might wish to draw this on a sheet of paper in pencil and take a photo of your work and upload as your submission. This is easier than typing it in Word I think.
Here is an example:
LinkedList<String> airports = new LinkedList<>();
airports.addFirst(“LAX”);
airports.addFirst(“MIA”);
airports.addFirst(“SEA”);
System.out.println(airports.removeLast());
System.out.println(airports.removeFirst());
System.out.println(airports.removeLast());
SEA
LAX
MIA
After the output show you iterator and nodes for each step.
Step 1: airports.addFirst(“LAX”);
=====
=LAX=
=====
Step 2: airports.addFirst(“MIA”);
===== =====
=LAX= =MIA=
===== =====
continue with drawing the steps.
"Place your order now for a similar assignment and have exceptional work written by our team of experts, guaranteeing you "A" results."