Java学習でLinkedListの使い方–removeFirst()、removeLast()

Javaコード:

import java.util.LinkedList;
public class Mainlinked {

public static void main(String[] args) {
LinkedList cftlist = new LinkedList();
cftlist.add(“Ahh");
cftlist.add(“Bnn");
cftlist.add(“Cmm");
cftlist.add(“Dpp");
cftlist.removeFirst();
cftlist.removeLast();
System.out.println(cftlist);
}
}

Java

Posted by arkgame