If duplicates is present then print ArrayList
if ( ifPresent == true ) { Console . Write ( " [ " + al [ 0 ] + " , ▁ " ) ; for ( int i = 1 ; i < al . Count - 1 ; i ++ ) { Console . Write ( al [ i ] + " , ▁ " ) ; } Console . Write ( al [ al . Count - 1 ] + " ] " ) ; } else { Console . Write ( " No ▁ duplicates ▁ present ▁ in ▁ arrays " ) ; } }