Ok well im writing ths app for school and i just cant seem to find out how to keep the "String ele;" constant thought the method take a look at the attachment, if you click hydrogen it will set the string ele to hyrdrogen but then once you click atomic number its null, so how would i keep the string ele through out the progam once you selected it?

