With this, we complete our discussion on string arrays. The syntax of creating an array in Java using new keyword −. 2) To store elements in to the array for i=0 to i