This is what I've got:
Var:
ArrayList<String> itemLoot = new ArrayList<String>();
String[] lootItem = new String[itemLoot.size()];
Method:
GroundItem loot = groundItems.closest(lootItem);
GUI:
if(law) {
g.drawImage(img5, 48, 201, null);
String l1 = "Law rune";
itemLoot.add(l1);
} if(death) {
g.drawImage(img5, 48, 221, null);
String l2 = "Death rune";
itemLoot.add(l2);
} if(nature) {
g.drawImage(img5, 48, 242, null);
String l3 = "Nature rune";
itemLoot.add(l3);
} if(chaos) {
g.drawImage(img5, 48, 262, null);
String l4 = "Chaos rune";
itemLoot.add(l4);
} if(bones){
g.drawImage(img5, 48, 281, null);
String l5 = "Big bones";
itemLoot.add(l5);
}