| 1 | public 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected