changes the color of each given shape to newcolor , appending a string representation of the color of all the shapes , as they were before they were changed . example : given a list containing blue shape , green shape , black shape when this method is called with that list , the color red , and an empty stringbuilder then the list will contain red shape , red shape , red shape and the stringbuilder 's tostring method will return '' a blue shape a green shape a black shape '' this operation is performed in one pass over the shapes list . note that syntactically a lambda is similar to an ordinary java code block . therefore multiple statements separated by ; are perfectly legal e.g. x - > x.dosomething ; y.dosomethingelse ; ; concode_field_sep PlaceHolder placeHolder concode_field_sep void colorAll concode_elem_sep void makeStringOfAllColors
void function ( List < Shape > arg0 , Color arg1 , StringBuilder arg2 ) { arg0 . forEach ( shape -> { arg2 . append ( shape ) ; shape . setColor ( arg1 ) ; } ) ; }