One way would be to have a filter String that has a letter that describes what type of character goes next. Have a method to generate each type. Have switch statement inside a loop that goes...