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

Method main

Programs/Circular_Queue.java:54–80  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

52 }
53
54 public static void main(String[] args) {
55
56 CircularQueue cq = new CircularQueue();
57 cq.first = cq.last = null;
58
59 System.out.println("Inserting value = 69");
60 Insert(cq, 69);
61 System.out.println("Inserting value = 12");
62 Insert(cq, 12);
63 System.out.println("Inserting value = 42");
64 Insert(cq, 42);
65
66 displayCircularQueue(cq);
67
68 System.out.printf("\nDeleting value = %d", Delete(cq));
69 System.out.printf("\nDeleting value = %d", Delete(cq));
70
71 displayCircularQueue(cq);
72
73 System.out.println();
74 System.out.println();
75 System.out.println("Inserting value = 21");
76 Insert(cq, 21);
77 System.out.println("Inserting value = 3");
78 Insert(cq, 3);
79 displayCircularQueue(cq);
80 }
81}

Callers

nothing calls this directly

Calls 3

InsertMethod · 0.95
displayCircularQueueMethod · 0.95
DeleteMethod · 0.95

Tested by

no test coverage detected