we duplicate some strings in the array and distinct operator detect those and skip it . shall print hello reactive world concode_field_sep PlaceHolder placeHolder concode_field_sep void testDistinctUntilChanged concode_elem_sep void testDistinctFunc concode_elem_sep void testDistinct
void function ( ) { String loc0 = "srini_string" ; String loc1 = "srini_string" ; String loc2 = "srini_string" ; List < String > loc3 = Arrays . asList ( loc0 , loc0 , loc1 , loc1 , loc2 , loc2 ) ; Observable . from ( loc3 ) . distinct ( ) . subscribe ( System . out :: println ) ; }