package org.geojson.object;

public class FeatureCollection {
	
	private Feature[] features;
	
	public FeatureCollection(Feature[] features) {
		this.features = features;
	}
	
	public Feature[] getFeatures() {
		return features;
	}
	
	public void setFeatures(Feature[] features) {
		this.features = features;
	}
}
@@ -22,16 +22,40 @@
 bject;%0A%0A
+import java.util.List;%0A%0A
 public c
@@ -90,25 +90,29 @@
 private 
+List%3C
 Feature
-%5B%5D
+%3E
  feature
@@ -142,25 +142,29 @@
 lection(
+List%3C
 Feature
-%5B%5D
+%3E
  feature
@@ -256,88 +256,32 @@
 ures
-;%0A%09%7D%0A%09%0A%09public void setFeatures(Feature%5B%5D features) %7B%0A%09%09this.features = features
+.toArray(new Feature%5B0%5D)
 ;%0A%09%7D

Use List<Feature> instead array in constructor.