Solve, complete code.
package homework.pkg3part.pkg4;
import java.util.Calendar;
import java.util.GregorianCalendar;
/*
Type: Posts; User: thatguy
Solve, complete code.
package homework.pkg3part.pkg4;
import java.util.Calendar;
import java.util.GregorianCalendar;
/*
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 ...
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);
...
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: " +...
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...
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...
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...
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...