Java Reference

Java Reference Home | Smart Soft Home

Square Brackets []
  1. Used to denote an array data type: "int[] x" is pronounced "int array x".
  2. Used to an array index: x[5] is pronounced x of 5. It refers to the 5th element of array x.