Print list
Iterator itr = longestList . iterator ( ) ; System . out . println ( " The ▁ Longest ▁ subsequence " ) ; while ( itr . hasNext ( ) ) { System . out . print ( itr . next ( ) + " ▁ " ) ; } System . out . println ( ) ; System . out . println ( " Length ▁ of ▁ LIS : ▁ " + highestCount ) ; } }