about the link Norm provided..i know that...i need the explanation to "test" "arrays" in a terminal.
Type: Posts; User: hemla
about the link Norm provided..i know that...i need the explanation to "test" "arrays" in a terminal.
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...
public class OneA {
public int product( int [] a ) {
int product = 1;
for ( int i = 0; i < a.length; i++ ) {
product *= a[i];
}
return product;
}
}