MCPcopy Create free account
hub / github.com/apna-college/Alpha / Classroom

Class Classroom

12_LinkedList.java/Classroom.java:3–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import java.util.LinkedList;
2
3public class Classroom {
4 public static void main(String args[]) {
5 //create -
6 LinkedList<Integer> ll = new LinkedList<>();
7
8 //add
9 ll.addLast(1);
10 ll.addLast(2);
11 ll.addFirst(0);
12 //0->1->2
13 System.out.println(ll);
14 //remove
15 ll.removeLast();
16 ll.removeFirst();
17 System.out.println(ll);
18 }
19}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…