Sim*_*onT 4 java naming-conventions
我想知道对方法名称与其参数之间的空格的总体建议是什么。
即以下两行之间的一般偏好:
public static void main (String[] args) {} // (We'll ignore the question of spaces between the `String` and `[]` .)
public static void main(String[] args) {}
我最近开始觉得前者更好,特别是考虑到方法声明中的所有其他内容(例如throws Exception(s)部分)也是空格分隔的。