java is a case sensitive language

解决方案 »

  1.   

    class MyDate{
         int  year,monhth,day;
         //加入一个缺省的构造
         public MyDate(){}}
      

  2.   

    变量,函数,类和对象的名称都是标识符,在Java语言里,标识符以字符或_,$开头,后面可以包含数字,标识符是大小写有区别的,没有长度限制。
      

  3.   

    monhth和month,兄弟,你眼神也太不好了
      

  4.   

    class MyDate{
         int  year,month,day;
    }
    public class  init{
    public  static void main(String  args[]){ 
              MyDate   t=new   MyDate();
             System.out.println(t.year);
             System.out.println(t.month);
               t.day++;
               System.out.println(t.day);
            }
    }
    这样子,就可以运行了,刚才我运行了一下
      

  5.   

    class MyDate{
         int  year,month,day;
    }
    public class  init{
    public  static void main(String  args[]){ 
              MyDate   t=new   MyDate();
             System.out.println(t.year);
             System.out.println(t.month);
               t.day++;
               System.out.println(t.day);
            }
    }刚才说错了
    上面的可以,注意拼写和大小写
      

  6.   

    >Mydate -〉MyDate
    >放在那我的意思是:将“Mydate”改成“MyDate”哈哈。兄弟你确实有趣。
      

  7.   

    init.java   4:cann't resove the symbol
      

  8.   

    我晕,为什么我总会来晚,哎.........
    朋友  注意大小写啊~~
    MyDate/Mydate