check if array list of strings is empty java 8 code example Example: check if array is empty java if (myArray == null || myArray.length == 0) { }