Java

2018-04-28  本文已影响12人  千里山南

public class Main {

public static void main(String[] args) {
    Integer a = 1;
    String b = "b";
    StringBuilder c = new StringBuilder("c");

    test(a, b, c);

    System.out.println("a = "+ a +" b = "+b+" c = "+c.toString());
}

public static void test(Integer a, String b, StringBuilder c) {
    a = Integer.valueOf(a + 1);
    b = b + "1";
    c.append("1");
}

}

上一篇下一篇

猜你喜欢

热点阅读