Formatting multiple arguments passed to a function in Java

后端 未结 6 1018
广开言路
广开言路 2021-02-13 21:18

Often the number of arguments passed to a function can be large. Consider the following case:

calculate(dataManager.getLastUpdate().getNumberOfChildren(),
               


        
6条回答
  •  梦毁少年i
    2021-02-13 21:42

    Referring to your example, Eclipse and other IDEs format it the way you have above (1 argument per line, all left aligned) and usually that looks pretty good.

提交回复
热议问题