Write a method called displayList that displays the data items in the Node class created in number 6 above.

What will be an ideal response?

```
public static void DisplayList(Node h)
{
Node current = h;
while(current != null)
{
System.out.println("The node contains " + current.getCityName() + " with
a pollution index of " + current.getPollutionCount());
current = current.getLink();
}
}
```

Computer Science & Information Technology

You might also like to view...

What is Volume Shadow Copy Service?

What will be an ideal response?

Computer Science & Information Technology

The management information system records day-to-day transactions, such as customer orders, bills, inventory levels, and production output.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology