Changes

Jump to: navigation, search

Teams Winter 2011/team2/lab3

597 bytes added, 01:06, 12 March 2011
no edit summary
import java.util.Random;
public class enum SimpleWeatherSystem { INSTANCE;
ArrayList<Weather> weathers = new ArrayList<Weather>();
public private SimpleWeatherSystem(){
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.
*
1
edit

Navigation menu