When you create an array of objects all it's elements are initialized to null. You simply have to create a new Element object and add it to the array like this:
Element[] elems = new Element[100];
elems[0] = new Element();
elem[0].setElementName("asdf");