This function prints contents of linked list starting from the given Node
static void display ( Node head ) { Node temp = head ; if ( head == null ) { Console . Write ( " null STRNEWLINE " ) ; return ; } while ( temp != null ) { Console . Write ( " { 0 } ▁ - - > ▁ " , temp . data ) ; temp = temp . next ; } Console . Write ( " null STRNEWLINE " ) ; }