Re: Some simple help please!
Can you post the code you executed and its output that shows the problem.
Re: Some simple help please!
// Enter a value to test here
double a =6.05000001 ;
double b;
// Enter your code here
b = Math.round(a,1);
After running this error occurs:
TC1.java:16: cannot find symbol
symbol : method round(double,int)
Re: Some simple help please!
Quote:
cannot find symbol
That says the compiler can not find a definition for a round method with the args of double and int.
Where did you see that method defined? Do you have the correct import statement to tell the compiler where the method is defined?
Re: Some simple help please!
um, i did not add a import statement b/c i assumed the complier in eimacs already had that. I would need to use right?
Re: Some simple help please!
Where is the method defined that you are trying to use? Where did you see doc for how to code it?
EDIT: Sorry, I don't know anything about eimacs.
1 Attachment(s)
Re: Some simple help please!
Um i.. don't know. :confused:
This might help, its all i'm really given
Attachment 1411
Re: Some simple help please!
Do you know where the Java SE packages and classes and their methods are defined? You need to have a link to the site where the API doc is:
Java Platform SE 7
Instead of making up method names and their args, go to the API doc and find one that will work.
Re: Some simple help please!
Ok, ill try and find one that works.
Thanks for the help.
Re: Some simple help please!
What has been discussed in your class so far? What techniques have you been shown?