0

I dont know when

to open curly braces({ ) and when to close it ( }) any suggestion will b helpful

1st Apr 2018, 7:37 PM
stephen haokip
stephen haokip - avatar
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 ( )]
1st Apr 2018, 7:39 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 3
{...()...()...}
9th Apr 2018, 5:50 AM
STRIKER
+ 2
At the start or end of a: Class, method, if statement, elae statement, else if statement or loop if any kind.
1st Apr 2018, 8:40 PM
josh mizzi
josh mizzi - avatar