Its an alternative as I'm not fully aware of the design and requirements of your project.
A list will at the end of the day always just be a list, however a map will is a list where you...
Type: Posts; User: Json
Its an alternative as I'm not fully aware of the design and requirements of your project.
A list will at the end of the day always just be a list, however a map will is a list where you...
You could of course use a map for this.
final Map<String, Carrier> carriers = new HashMap<String, Carrier>();
public void addCarrier() {
carriers.put(carrier.getName(),...
I wrote this little snippet for you.
import java.io.File;
import java.io.IOException;
import java.util.List;
import org.jdom.Document;
import org.jdom.Element;