This page contains an archived post to the Java Answers Forum made prior to February 25, 2002.
If you wish to participate in discussions, please visit the new
Artima Forums.
Message:
static methods in Arrays class
Posted by MAT on August 23, 2001 at 7:19 PM
I have been working through Bruce Eckel's book "Thinking In Java". All has been going well up to now. There is some code in a section on Containers that will not compile. There are several lines in the code that use the static fill methods in the class Arrays. When I try to compile the code it gives the error: cannot resolve symbol symbol: method fill (parameter list) location: class Arrays Arrays.fill(arguments); ^ The reason that I have put the generic parameter list and arguments above is that the code tries to use all the overloaded funtions so there are actually 10 errors listed. I have checked the code against the documentation and it appears to be correct. I did not write it, it comes with the book. I am just learning so I don't know what the problem/solution is. I am using the jdk1.3.1 on windowsNT. If the methods are static there is no instantiation required. It seems as though the class is seen but the methods are not recognized which is very strange to me.
Replies:
|