- import java.io.*;//for 鍵盤輸入
- import java.lang.Math;
- import java.util.ArrayList;
- public class Hello
- {
- public static void main(String args[])throws IOException
- {
- int a = 99;
- int b[] = new int[]{99};
- String s = "99";
-
- add99(a,b,s);
-
- System.out.println(a + "," + b[0] + "," + s);
-
- }
-
- public static void add99(int a,int [] b,String s)
- {
- a = a+1;
- b[0] = b[0]+1;
- s = s + "1";
- }
- }
複製代碼 |