|
-
Oct 21st, 2004, 06:33 AM
#1
Int to Double....
This is starting to irritate me. I have done to much C++ lately, so I am totaly off simple things in Java, and I have to do this assignment in Java...
Well I have a 2d array of INTs, and I want to convert one and one of them to a double. How do I do that?
I am extending a hoppfield class my teacher have made, and in his kode he has even written:
double d = 0.0D;
and it works...then 2 lines under that I wrote:
double d = 0.0D;
for(int k = 0; k < inn.length; k++)
double fix = 0.0D;
and I am getting an error on the "fix" variable, saying a .class is expected. How can I not get an error on his line but on my line? I hate it when Java is that little concise(SP?).
Well back to the topic. I thought there was a toDouble function, but I can only find one for Booleans, and I don't have my books with me. Any help?
Last edited by NoteMe; Oct 21st, 2004 at 04:22 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|