日期:2014-05-19 浏览次数:20819 次
import java.io.*; import java.math.*; public class Puncher { static int i,j; static void hole(int n) { int i; i = n+j; j= i+j; System.out.println("\n inside: i = "+i+" j = "+j); } public static void main(String argv[]) { System.out.println("\n before: i = "+i+" j = " +j); hole(5); System.out.println("\n after: i = "+i+" j = " +j); } }