Some use it by convention, easier to read. Just how they make classes names in java start with capital letters, though it's not a must
Curly Brackets are not mandatory in every if/else block, how ever in order to make your code more readable (i.e; easily distinguish the nested if else block of code ) you should use the curly brackets.
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Some use it by convention, easier to read. Just how they make classes names in java start with capital letters, though it's not a must
Curly Brackets are not mandatory in every if/else block, how ever in order to make your code more readable (i.e; easily distinguish the nested if else block of code ) you should use the curly brackets.