Section17.1:WhataStringBuilderisandwhentouseone AStringBuilderrepresentsaseriesofcharacters,whichunlikeanormalstring,aremutable.Oftentimesthereisa needtomodifystringsthatwe'vealreadymade,butthestandardstringobjectisnotmutable.Thismeansthateach timeastringismodified,anewstringobjectneedstobecreated,copiedto,andthenreassigned. stringmyString="Apples"; mystring+="aremyfavoritefruit"; Intheaboveexample,myStringinitiallyonlyhasthevalue"Apples".However,whenweconcatenate`"aremy favoritefruit"',whatthestringclassdoesinternallyneedstodoinvolves: CreatinganewarrayofcharactersequaltothelengthofmyStringandthenewstringweareappending. CopyingallofthecharactersofmyStringintothebeginningofournewarrayandcopyingthenewstringinto the end of the array. CreateanewstringobjectinmemoryandreassignittomyString. For a single concatenation, this is relatively…