Function to print nodes in a given Circular linked list
static void printList ( Node head ) { if ( head == null ) { System . out . print ( "Empty ListNEW_LINE"); return ; } Node temp = head ; if ( head != null ) { do { System . out . printf ( " % d ▁ " , temp . data ) ; temp = temp . next ; } while ( temp != head ) ; } }