Search:

Type: Posts; User: kumalh

Search: Search took 0.14 seconds.

  1. Replies
    12
    Views
    1,773

    Re: Time an object is created

    Sorry about that. If my commenting makes no sense, I apologise. It's been a very, very long night.




    // Method rolls the date of the calendar forward by a given number of days
    public...
  2. Replies
    12
    Views
    1,773

    Re: Time an object is created

    So I've written this:



    public void rollDaysTEST(int d) {
    int count = d;
    for(int i = 0; i == d; i = i + 1){
    date = date + 1;
    if(date >...
  3. Replies
    12
    Views
    1,773

    Re: Time an object is created

    Ahh sorry about the cross posting. This is my first time using forums so I'm not too familiar with all of that stuff. Like you said, I only meant well. In future I'll be sure to be more careful....
  4. Replies
    12
    Views
    1,773

    Re: Time an object is created

    Ok, so I've sorted out all of that stuff. Thank you for your help.

    I have another problem that I can't get though. I'm not sure if I should start a new post or not (I'm new - I apologise), so I'll...
  5. Replies
    12
    Views
    1,773

    Re: Time an object is created

    Ok, I'll check out Calendar and Date. Thanks.

    Also, I'm writing my own Calendar class (I know one already exists, but I'm required to write my own. So I can't use any methods from the pre-existing...
  6. Replies
    12
    Views
    1,773

    Re: Time an object is created

    How do I do this? And do I save it as a String?



    By name I mean the name of the instance. So say you created a new Calendar object and named it 'Cal' (e.g. cal = new Calendar(4, 8, 2011) )
    So...
  7. Replies
    12
    Views
    1,773

    Re: Time an object is created

    Also, how do I return the object name?
  8. Replies
    12
    Views
    1,773

    Time an object is created

    Hi, I'm creating a class and want to write a method that prints the time an object was created. Is there any way to do this?

    Thanks in advance!!

    Kumalh.
Results 1 to 8 of 9