is Array Empty - Android java.lang

Android examples for java.lang:array

Description

is Array Empty

Demo Code

public class Main {

  public static <M extends Object> boolean isEmpty(M[] array) {
    return array == null || array.length == 0;
  }/* w  w w  .j  av a 2s  .  c om*/

}

Related Tutorials