how to check string array is empty in java 8 code example Example: check if array is empty java if (myArray == null || myArray.length == 0) { }