public static List < Character > filterLetters ( List < Character > characters ) { return characters . stream ( ) . filter ( Character :: isLetter ) . collect ( toList ( ) ) ; }
Keep only letters from a list of characters .