All pastes #366515 Raw Edit

Plouj

public text v1 · immutable
#366515 ·published 2007-02-21 18:49 UTC
rendered paste body
public class my class {

private static ArrayList<Address> address;

...
public static void main(String[] args) {
...
address = new ArrayList<Address>();
for (int i = 0; i < addressCount; i++ ) {
line = "";
address.add(i, new Address());
...
}
}

...
// embedded classes
	public class Address {
		public String street;
		public int number;
		public String city;
		public String postalCode;

		public Address() {
			this.street = "";
			this.number = 0;
			this.city = "";
			this.postalCode = "";
		}
	}
}