Code example for Stack

Methods: add

0
		public Integer count;
		public Stack<ObjectType> objectTypes = new Stack<ObjectType>();
		 
		protected ObjectType addObjectType(String type) {
			ObjectType ot = new ObjectType(type);
			objectTypes.add(ot);
			return ot;
		} 
		 
		protected class ObjectType { 
			public Integer count;
			public String type;
			 
			public ObjectType(String type) {
				this.type = type;
			} 
		} 
	} 
	 
	protected class Connections { 
		public Stack<Connect> connections = new Stack<Connect>();