Code example for Stack

Methods: add

		public Integer count;
		public Stack<ObjectType> objectTypes = new Stack<ObjectType>();
		protected ObjectType addObjectType(String type) {
			ObjectType ot = new ObjectType(type);
			return ot;
		protected class ObjectType { 
			public Integer count;
			public String type;
			public ObjectType(String type) {
				this.type = type;
	protected class Connections { 
Connect your IDE to all the code out there  Get Codota for Java