让代码说话! 原文 Let the code speak! 你见过这样的代码么: public String getProductNames(List products) { StringBuilder strBuf = new StringBuilder(); } public void add(final double price, final int quantity) { drinks.add(strategy.getActPrice(price*quantity)); } 简单明了,而且很好理解对吧。现在再看看下面这个例子: void getPositiveNumbers(List l1, List l2) { for (Integer el1: l1) if (el1 0) l2.add(el1);