Answer the question
In order to leave comments, you need to log in
How to properly place curly braces in Java?
ArrayList<Integer> list = new ArrayList<Integer>();
for(int i=0; i<20; i++)
if(i%2 == 0)
list.add(i);
for(int i=0; i<20; i++){
if(i%2 == 0){
list.add(i);
}
}
Answer the question
In order to leave comments, you need to log in
The first option statistically causes more bugs, especially with changes to old code. Therefore, any styler will swear at him.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question