Posted by: Slackdemic September 14, 2006
Java Programming Help!
Login in to Rate this Post:     0       ?        
The one I am trying to do here should be way too easier than the example on the site. I try to get started, and I am sure, it is wrong, but this is what I tried to do. public class Date { private int month; private int day; private int year; public Date ( int dateMonth ) { if { ( dateMonth > 0 ) ( dateMonth < 12 ) dateMonth = month; } public Date ( int dateDay ) if { ( dateDay > 0 ) ( dateDay < 31 ) dateDay = day; } } public int getMonth() { return month; } public int getDay() { return day; } }
Read Full Discussion Thread for this article