日期:2014-05-20 浏览次数:20779 次
public class Test{
void Trans(int intIndex, String str, StringBuffer strBuffer)
{
intIndex += 1;
str += '1';
strBuffer.append('1');
}
public static void main(String[] args) {
int intIndex = 100;
String str = "100";
StringBuffer strBuffer = new StringBuffer("100");
Test t = new Test();
t.Trans(intIndex, str, strBuffer);
System.out.println(intIndex);
System.out.println(str);
System.out.println(strBuffer);
}
}