chain it up and ship it
Last updated 3 years ago
Was this helpful?
It is a doubly linked-list, deal with it.
linked-list
import java.util.LinkedList; public class Main { public static void main(String[] args) { LinkedList<String> cars = new LinkedList<String>(); cars.add("Volvo"); cars.add("BMW"); cars.add("Ford"); cars.add("Mazda"); System.out.println(cars); } }
Just refer to the documentation for the methods