From d2cd1a8df5cd6392650f455a5df844ec55c3e1dc Mon Sep 17 00:00:00 2001 From: stleary Date: Thu, 4 Jun 2015 22:26:16 -0500 Subject: [PATCH] iterable --- JSONArray.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/JSONArray.java b/JSONArray.java index 3f05548..deede03 100644 --- a/JSONArray.java +++ b/JSONArray.java @@ -75,9 +75,9 @@ import java.util.Map; * * * @author JSON.org - * @version 2014-05-03 + * @version 2015-06-04 */ -public class JSONArray { +public class JSONArray implements Iterable { /** * The arrayList where the JSONArray's properties are kept. @@ -179,6 +179,11 @@ public class JSONArray { } } + @Override + public Iterator iterator() { + return myArrayList.iterator(); + } + /** * Get the object value associated with an index. *