Search:

Type: Posts; User: thatguy

Search: Search took 0.10 seconds.

  1. Replies
    11
    Views
    3,300

    [SOLVED] Re: GregorianClaendar Class

    Solve, complete code.


    package homework.pkg3part.pkg4;


    import java.util.Calendar;
    import java.util.GregorianCalendar;

    /*
  2. Replies
    11
    Views
    3,300

    [SOLVED] Re: GregorianClaendar Class

    Now I'm confused about something else.

    This is the right answer.
    GregorianCalendar birthday = new GregorianCalendar(2012, 5, 7);
    int birthdayWeekday = birthday.get(Calendar.DAY_OF_WEEK);

    or ...
  3. Replies
    11
    Views
    3,300

    [SOLVED] Re: GregorianClaendar Class

    I think i figured it out

    cal.set(year, month, dayOfMonth);
    System.out.println("Date: " + cal.getTime().toString());
    cal.add(Calendar.DAY_OF_MONTH, 100);
    ...
  4. Replies
    11
    Views
    3,300

    [SOLVED] Re: GregorianClaendar Class

    O.K so i tried three different things

    cal.add(Calendar.DAY_OF_MONTH, 100); // nothing
    cal.add(dayOfMonth, 100); // nothing

    System.out.println("Add 100 days: " +...
  5. Replies
    11
    Views
    3,300

    [SOLVED] Re: GregorianClaendar Class

    I think I been asking the wrong question. I knew how to get the information obviously since I did it in my first post. Sorry about that. but is there a way to convert that into a "date type" where I...
  6. Replies
    11
    Views
    3,300

    [SOLVED] Re: GregorianClaendar Class

    Thank you. I been looking up and down GregorianCalendar and the calendar API. But i don't see anything that will get the information from my constructor.

    I'm using my constructor to declare my...
  7. Replies
    11
    Views
    3,300

    [SOLVED] Re: GregorianClaendar Class

    Ya i looked at that also but still no luck. I don't understand if I used cal.add(dayOfMonth, 2); but i can't assign it to a variable and I can't print it out so what can i do with it. Sorry I am...
  8. Replies
    11
    Views
    3,300

    [SOLVED] GregorianClaendar Class

    I have having trouble with a program my teacher gave me and I was wondering if someone can point me in the right direction. I have to write a program that prints the following information: The date...
Results 1 to 8 of 8