MCPcopy Create free account
hub / github.com/PrajaktaSathe/Java / Main

Class Main

Programs/Circular Integer LinkedList/Main.java:1–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1public class Main {
2
3 public static void main(String[] args) {
4 circularLinkedList list = new circularLinkedList();
5
6 /**adds 10 random number in linkedlist */
7 for(int i=0;i<10;i++){
8 int number = (int)(Math.random()*10);
9 list.add(number);
10 }
11 System.out.println("linkedlist:");
12 list.print();
13 System.out.println("size of linkedlist: "+list.size());
14 System.out.println("\n");
15
16 list.delete(1);
17 list.delete(0);
18
19 System.out.println("1. element is : "+list.getElement(1));
20 System.out.println("head of linkedlist is: "+list.getElement(0));
21
22 }
23
24}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected