0
I dont know when
to open curly braces({ ) and when to close it ( }) any suggestion will b helpful
3 ответов
+ 14
to execute set of commands/statements together accn to evaluation of particualr condn ... then its better to put all in { }
//as without brackets only 1 statement will be included by default
//for () ... generally used to pass arguments for a method [inside ( )]
+ 3
{...()...()...}
+ 2
At the start or end of a: Class, method, if statement, elae statement, else if statement or loop if any kind.