程序调试通过,为什么屏幕不显示结果?
3xp 2003-08-20 11:19:46 import java.awt.*;
public class mnmn {
private int day = 12;
private int month = 6;
private int year = 1900;
public mnmn(int d, int m, int y) {
year = y;
month = m;
day = d;
}
public static void main(String[] args) {
mnmn m;
m = new mnmn(22, 9, 2001);}
public void display() {
System.out.println(year + " / " + month + " / " +day);
}
}
程序调试通过,为什么屏幕不显示结果?System.out.pringln...不起作用。