智慧大石
import java.io.PrintStream;public class Demo3 {
public static void main(String[] args) {
int a = 10;
int b = 20;
method(a,b);
System.out.println("a="+a);
System.out.println("b="+b);
}
public static void method(int a,int b){
System.setOut(new PrintStream(System.out,true){
public void println(String x){
super.println(x+'0'); }
}); }
}