Java

作者: 千里山南 | 来源:发表于2018-04-28 11:19 被阅读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");
    }
    

    }

    相关文章

      网友评论

          本文标题:Java

          本文链接:https://www.haomeiwen.com/subject/dwxglftx.html