This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
I am trying to write a small program that will take a string input, look at the length, parse it as an int value, then feed that value to a GregorianCalendar object as milliseconds, then display the corresponding date.
This code gives me the following compile time error:
HexVerify.java:79: computeFields() has protected access in java.util.GregorianCalendar calendar.computeFields(); ^ I have looked up protected access and I guess I just don't understand what it's saying well enough to see why I am getting the error.
I peeked at the source for Calendar and computeFields() is called by setTimeInMillis() [ February 10, 2005: Message edited by: Carol Enderlin ]
Glen A Scheel
Joined: Jan 06, 2005
I added it into the code because I thought that a different problem was being caused by the setTimeInmillis not updating the other fields. However , it now looks like it was because I was using the wrong datatype for my input field.
Thanks for looking into it for me. I believe that I have it working properly now.