程序调试通过,为什么屏幕不显示结果? 在这行(m = new mnmn(22, 9, 2001);)下加入: m.display(); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 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); m.display(); // 增加的 } public void display() { System.out.println(year + " / " + month + " / " +day); }} 关于继承类实例的区别 关于数字排列问题 菜鸟问概念问题,朋友帮帮忙。我会很快结帖的。 请问如果将JButton控件上的文字竖排?谢谢。 下面的错误提示是什么意思? 免费高清晰电影下载,每日狂多更新,推荐! 谁有用java实现的多线程服务程序,在线等待,300分, 在Applet中如何阶梯状图表呢?(数据从数据库从采样) 求个正则,截取字符串 一段代码 help!help!!ResultSet和DataSet有何关联,可以转换吗?如果可以该如何实现。谢谢! jbulid创建jsp出现的问题
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);
m.display(); // 增加的
}
public void display() {
System.out.println(year + " / " + month + " / " +day);
}
}