Search:

Type: Posts; User: hemla

Search: Search took 0.17 seconds.

  1. Replies
    5
    Views
    1,454

    Re: how to test arrays in a terminal in java?

    about the link Norm provided..i know that...i need the explanation to "test" "arrays" in a terminal.
  2. Replies
    5
    Views
    1,454

    Re: how to test arrays in a terminal in java?

    If i just type java OneA i get the following error: Exception in thread "main" java.lang.NoSuchMethodError: main

    I know it's java OneA but after that what should be written so that it can give me...
  3. Replies
    5
    Views
    1,454

    how to test arrays in a terminal in java?

    public class OneA {
    public int product( int [] a ) {
    int product = 1;
    for ( int i = 0; i < a.length; i++ ) {
    product *= a[i];
    }
    return product;
    }
    }
Results 1 to 3 of 3