第一个自己写的JAVA小程序——鼓励一…
public class day3_1 {
public static void main(String[] args) {
// TODO Auto-generated method stub
day3_1 Birthday=new day3_1();
Birthday.day="09";
Birthday.mouth="03";
Birthday.year="1987";
System.out.println("Birthday: ");
System.out.println(Birthday.year+"/"+Birthday.mouth+"/"+Birthday.day);
System.out.println(Birthday.year+"-"+Birthday.mouth+"-"+Birthday.day);
Birthday.method();
Birthday.showResult();
}
}