Apologies on the time to respond.
I see what you are saying now, this should be very useful! I will let you know how the end product looks!
Type: Posts; User: JNeether
Apologies on the time to respond.
I see what you are saying now, this should be very useful! I will let you know how the end product looks!
It makes sense, however I have been encouraged to encapsulate the data fields. Therefor by making the Lists static it will not meet that criteria. I should mention I will eventually expand this...
I do get that I could create any kind of a Collection of type <Location>, however whether I should have individual collections for each type (Continent, Country, ... etc) or have a collection that...
Thanks aussie for the the reply. The problem I have is that I have the below Location class
public class Location {
/**
* The name of the location.
*/
private String name;
I am working on a Java program that takes in information on various locations (could be a continent, country, city or point of interest) and creates a database that can be searched through. Currently...