array java lenth code example Example 1: java get size of array arrayname.length Example 2: java get size of array //Simply do following array.lenght;