Guava 代码 Java FileWriter 类 Java 使用Runnable接口创建线程 Guava 代码 public class GuavaTester { public static void main(String args[]) { GuavaTester guavaTester = new GuavaTester(); Integer a = null; Integer b = new Integer(10); System.out.println(guavaTester.sum(a,b)); } public Integer sum(Integer a, Integer b) { return a + b; } } Java FileWriter 类 Java 使用Runnable接口创建线程