Java Array Length Get length(int[] tail)

Here you can find the source of length(int[] tail)

Description

length

License

Apache License

Declaration

private static int length(int[] tail) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    private static int length(int[] tail) {
        int product = 1;
        for (int aTail : tail) {
            product *= aTail;/*  ww  w. ja  v  a 2 s .  co m*/
        }
        return product;
    }
}

Related

  1. length(double[] x)
  2. length(final double[] a)
  3. length(final Object[] array)
  4. length(final T[]... arrays)
  5. length(float[] color)
  6. length(int[][] instance, int u)
  7. length(long[] v)
  8. length(Object anArray[])
  9. length(Object[] array)