Thread: My java problem
View Single Post
Old Apr 14th, 2004, 8:18 PM   #2
big_k105
PFO Founder

 
big_k105's Avatar
 
Join Date: Mar 2004
Location: Fargo, ND
Posts: 1,628
Rep Power: 10 big_k105 is on a distinguished road
Send a message via AIM to big_k105 Send a message via MSN to big_k105 Send a message via Yahoo to big_k105
well im not 100% sure what the problem is but a buddy of mine was thinking it was the (int) in this line
private double calculateDogyears(int Humanyears, int Dogyears)
{
return 13 + (int)(16.0 / 3.0 * (Dogyears - 1)); *<-- this line :)
}

try removing that and see what it does for you. i didnt try running your code, but when i get time i will try it out. hope this helps
__________________
BIG K aka Kyle
Programming Forums
Kyle K Online

Please do not PM or email me programming questions. Post them in the forums instead.
big_k105 is offline   Reply With Quote