iwouldliketoknowwhyjavaarraydeclarationsusecurlybracketsasopposedtothestandardparenthesis.asillustratedhere.iimaginethismanethismation gofcurlybracketsingeneral,butthisspecificallyisonmyagendarightnow。
Object[] tableHeaders={'Cars ',' Trucks ',' Tacos'};
This is correct,as opposed to .
Object[] tableHeaders=('Cars ',' Trucks ',' Tacos ' );
curlybracketsusuallydenotessetsandensembleswhileparenthesisusuallydenotesparametersinc-like languages。
A long time ago,peoplegotusedtohavingthiskindofconventionwithc.I ' mprettysurethatitworksthiswayinjavatokeepsomekindofsyntaxccofsyn