Search:

Type: Posts; User: ribhoo

Search: Search took 0.09 seconds.

  1. Replies
    6
    Views
    1,559

    Re: whats wrong? help to newbie

    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 ==...
  2. Replies
    6
    Views
    1,559

    Re: whats wrong? help to newbie

    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
  3. Replies
    6
    Views
    1,559

    Re: whats wrong? help to newbie

    here is the whole code:



    public class Date
    {


    private int day;
    private int month;
  4. Replies
    6
    Views
    1,559

    whats wrong? help to newbie

    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,...
Results 1 to 4 of 4