ok, so I found the problem now it's work
here is the code:
{ int newDay=this.day, newMonth=this.month, newYear=this.year;
if ((this.month == 1) || (this.month == 3) || (this.month ==...
Type: Posts; User: ribhoo
ok, so I found the problem now it's work
here is the code:
{ int newDay=this.day, newMonth=this.month, newYear=this.year;
if ((this.month == 1) || (this.month == 3) || (this.month ==...
thanks, now when I'm changed the code to
++this.day
I'm getting +2
tried with date 3 1 85 and got 5 3 85
here is the whole code:
public class Date
{
private int day;
private int month;
hi all,
can any one tell me what's wrong?
i'm triyng to get next date from object that I created and still getting the same date
public Date nextDay()
{ int newDay=this.day,...