This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
Henry Wong wrote:The error message seems really clear to me. The query variable is a float array -- and you tried to assign an double array to it.
Correct. You should change the assignment to new float. That still would not compile because of the 0.0's - those are doubles. If you change those to 0.0f they become floats and the array can hold them.