Search:

Type: Posts; User: JohnJohnson123

Search: Search took 0.12 seconds.

  1. Re: Trying to write a program that reads from StdIn and findes the highest value

    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)
  2. Re: Trying to write a program that reads from StdIn and findes the highest value

    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...
  3. Re: Trying to write a program that reads from StdIn and findes the highest value

    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.
  4. Trying to write a program that reads from StdIn and findes the highest value

    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...
Results 1 to 4 of 4