1
edit
Changes
no edit summary
import java.util.Random;
public class enum SimpleWeatherSystem { INSTANCE;
ArrayList<Weather> weathers = new ArrayList<Weather>();
ArrayList<String> cities = new ArrayList<String>();
cities.add("Toronto");
return found;
}
}
</source>
*You will notice that we used a public "enum" type instead of a class. This would make the object in our program a global point for the whole application to access. It's a singleton (static class).
*These classes will be used later on into the tutorial.
==Creating and Using Commands==
*Commands are in the most lamen terms, actions. What we mean by action is that we are insisting through some physical representation, whether it be a button or plain-typed text, we are calling an event. That event can be to exit the program or even perform a feature within the application.
*