This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
I was trying a program to convert the miliseconds we get after from date object (Post Jan 1970) to date object again. Here what I was trying and I am getting interger number too large error. I am using long datatype though. Please advice.
This is the out put:
MillisecondToDate.java:5: integer number too large: 1222402191823
long yourmilliseconds = 1222402191823;
Joined: May 15, 2005
I got this fixed. It shud be Long yourmilliseconds = 1222402191823L;
This is what happens when you are not in touch with programing for 3 years