标签:java stringbuffer
Java中的StringBuffer
/** * */ package com.you.model; /** * @author YouHaidong * */ public class StrFoo { /** * @param args */ public static void main(String[] args) { StringBuffer a = new StringBuffer("A"); StringBuffer b = new StringBuffer("B"); operate(a, b); System.out.println(a + "," + b); } /** * * @param x * @param y */ public static void operate(StringBuffer x,StringBuffer y) { x.append(y); y = x; } }
AB,B
Java中的StringBuffer,布布扣,bubuko.com
标签:java stringbuffer
原文地址:http://blog.csdn.net/you23hai45/article/details/38185479