Skip to main content

All Questions

3 votes
4 answers
1k views

Is "Let more people able to review" a valid reason to "write c++ as if Java" at some degree?

According to Should we avoid language features that C++ has but Java doesn't?, I know it is horrible to write C++ as if Java, mostly because it drops the beneficial features of C++ languages. But ...
ocomfd's user avatar
  • 5,750
0 votes
2 answers
11k views

changing the value of String object in java

I have to set the value of a string object "result" depending on the results of different methods and different if/else conditions. In the end, there would be one (last value set) in the string that i ...
gogogaga's user avatar
  • 113
1 vote
1 answer
268 views

Sorting Array before looping : best practice

I was going through JBAKE code at https://github.com/jbake-org/jbake/blob/master/src/main/java/org/jbake/app/Asset.java : 58 PFB the code. Why are we sorting the array here? if (assets != ...
Mohit Kanwar's user avatar