how to find the length of an int array in java code example Example: length of array in java arr.length;