下面程序的运行结果是( )public class LinkedListTest { public static void main(String[] args) { LinkedList<String> ll=new LinkedList<String>(); ll.add("bb"); ll.add("cc"); ll.addFirst("aa"); ll.addLast("dd"); ll.add(2,"ins"); System.out.print(ll.get(2)); ll.remove(0); System.out.println(" "+ll.get(2)); }}
A、cccc;
B、bbcc;
C、inscc;
D、ccdd
发布时间:2024-10-05 03:34:33