The list of cities. I know that database is the only solution, but if
there is a class already that provides all the names of the cities,
then why do I need to bother?
Just would like to know if there is such a class that provides names
of cities.
I would assume that if I was entering the place name in a Java
program, I would have an if statement:
//Assume there is a class for names of cities called Cities
Cities cities = new Cities();
if placeName != cities
System.out.println("City not found!");
I know there is no such class as Cities, but let's assume there was,
I'd want to have an if statement like that. I was only wondering if
there was a collection class that hold names of cities.
Yoyoma_2 <Yoyoma_2@[at-]Hotmail.com> wrote in message news:<Ve37c.866184$X%5.717972@pd7tw2no>...
Mohammed Mazid wrote:
All I wanted to know if there was a Java class that has all the names
of places. I have alternatives but it will be time-consuming and
there are probably millions places in the world! I just want to know
if there is such a class.
"Places" can mean a lot of things. Do you want like the geography of
the area? Its airports? its wind pattern? or you just want the list of
cities in the world?
One city can have many airports. Whatever this is it can't just be in a
class. it would be in a database or datafile. What are you looking
for perciceley?
Would the stuff in the flightgear project help you?
ma***@applejuicenet.de (Torsten Krall) wrote in message news:<63**************************@posting.google. com>...
ka******@hotmail.com (Mohammed Mazid) wrote in message news:<7c**************************@posting.google. com>...
Can anyone please tell me if there is a class that provides place
names in the world? I am trying to implement a Flight system and if
there was such a class then it could've contributed towards the system
so that if anyone has typed in garbage, then it had showed an error
message.
I am aware of the alternative which is to implement my own class of
place names, but if there is already a class that provides place names
then I will not need to bother implementing such a class. Please tell
me if there is.
Thank you all.
What are you going to do ?????
You do not really want to use a class with thousands of constants, do you ?
Use a database.