how to get size of string array in java code example Example: java get size of array arrayname.length