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");
}
}
网友评论