This is Element class:
Element
public class Element { private String elementName; private int atomicNumber; private String Symbol; priv
Between those two lines
Element[] element = new Element[103]; element[0].setElementName("H");
you need to create element[0], that is to build a new instance of Element. In your code element[0] is null, hence the NullPointerException when you call setElementName.
element[0]
NullPointerException
setElementName