This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
I have a simple question which Write a method that computes the average, min and max of the values in an array of doubles. The header of the method is as follows:
public static double average(double x)
public static double min(double x)
public static double max(double x) As a beginner java programmer I still have problems in my code.. Could you help me to fetch the true answer.
Step 1... You need to make sure that your program can compile first. If you can't compile, you can't run. If you can't run, you can't test. If you can't test, you can't figure out what is wrong. If you can't figure out what is wrong, you can't fix.
So... Does the program compile? What issues are you having when you try to compile it?