<<< Array elements example | Index | Array initialization syntax >>> |
Code that assigns objects to an array of Product objects
Product[] products = new Product[2]; products[0] = new Product("java"); products[1] = new Product("jsps");
<<< Array elements example | Index | Array initialization syntax >>> |