Check this out.
What is wrong?
public class
{
//Finding the max and counting them
public static double max(double[] a, int lo, int hi) {
if (lo < 0 || hi >= a.length || lo > hi)
Type: Posts; User: JohnJohnson123
Check this out.
What is wrong?
public class
{
//Finding the max and counting them
public static double max(double[] a, int lo, int hi) {
if (lo < 0 || hi >= a.length || lo > hi)
When I put the print statement in main and the second error message in static.
This is my problem a have got the concept, almost(hahah), my problem is the scope and chooing the right method and...
My program is supposed to read a file and return the number of highest value in the terrain, count the peaks so to speak.
My problem is the scope and print out.
Hi!
I'm trying to write a program that counts the highest value in a matrix .
It does'nt work. What is wrong with it? If I put System.out print at bottom of main all hell breaks loose.
So...here...