hi! i'm having problem with this programming..can anyone check where is my error..
Question: Write a program called PassTheArrayPlease.java that asks the user to enter five numbers and then stores them in an array. When finished receiving the numbers, the program should pass the array to a method called averageNumbers. This method should average the numbers and return the average to main. The method main should then display the result to the user. Use the class NumberFormat to format the average to three decimal places.
this is my answer: import javax.swing.JOptionPane;
public class PassTheArrayPlease { public static void main(String[] args) { String s; s = JOptionPane.showInputDialog(null, "Enter five numbers"); double[] numbers = new double[5];