例如: Consumer con1Consumer con2String s = 'java';con1.accept(s);con2.accept(s);使用andThen进行优化:连接两个Consumer接口,再对数据进行消费//谁写在前面,谁就先....